/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Inicio.java
 *
 * Created on 14/04/2011, 08:28:32 PM
 */
package Presentacion;
//Importaciones de las clses Manager y java.swing
import Manager.ManagerVehiculo;
import Manager.ManagerItinerario;
import Manager.ManagerCiudad;
import Negocio.Vehiculo;
import Negocio.Itinerario;
import Negocio.Empleado;
import Negocio.Ciudad;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.*;
import javax.swing.table.DefaultTableModel;
import Manager.ManagerEmpleado;

/**
 *
 * @author s11e09
 */
public class Inicio extends javax.swing.JFrame {

    private ManagerEmpleado managerempleado = new ManagerEmpleado();
    private ManagerVehiculo managervehiculo = new ManagerVehiculo();
    private ManagerItinerario manageritinerario = new ManagerItinerario();
    private ManagerCiudad managerciudad = new ManagerCiudad();
    private ArrayList<Empleado> vEmpleado = new ArrayList<Empleado>();
    ArrayList<Ciudad> vCiudad;
    private ArrayList<Itinerario> vItinerario = new ArrayList<Itinerario>();
    private ArrayList<Vehiculo> vVehiculo = new ArrayList<Vehiculo>();

    /** Creates new form Inicio en este contructor inicio tambien se definen unas variable iniciales para que no sean editable en el from */
    public Inicio() {
        vCiudad = new ArrayList<Ciudad>();

        initComponents();

        textProveedor.setEditable(false);
        comboxBoxFechaInicioDia.setEnabled(false);
        comboxBoxFechaInicioMes.setEnabled(false);
        comboxBoxFechaInicioAño.setEnabled(false);
        comboxBoxFechaFinalDia.setEnabled(false);
        comboxBoxFechaFinalMes.setEnabled(false);
        comboxBoxFechaFinalAño.setEnabled(false);
        textValorPagado.setEditable(false);

    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {
        bindingGroup = new org.jdesktop.beansbinding.BindingGroup();

        buttonGroup1 = new javax.swing.ButtonGroup();
        titulo = new javax.swing.JLabel();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel1 = new javax.swing.JPanel();
        textSueldo = new javax.swing.JTextField();
        textApellido = new javax.swing.JTextField();
        textNombre = new javax.swing.JTextField();
        botonAgregarEmpleado = new javax.swing.JButton();
        jScrollPane1 = new javax.swing.JScrollPane();
        tablaEmpleados = new javax.swing.JTable();
        mostrarEmpleados = new javax.swing.JButton();
        jLabelNombre = new javax.swing.JLabel();
        jLabelApellido = new javax.swing.JLabel();
        jLabelSueldo = new javax.swing.JLabel();
        jLabelCedula = new javax.swing.JLabel();
        textCedula = new javax.swing.JTextField();
        jLabelFechaNacimiento = new javax.swing.JLabel();
        jLabelCorreo = new javax.swing.JLabel();
        textCorreo = new javax.swing.JTextField();
        jLabelTelefonoEmpleado = new javax.swing.JLabel();
        textTelefono = new javax.swing.JTextField();
        ComboBoxDia = new javax.swing.JComboBox();
        ComboBoxMes = new javax.swing.JComboBox();
        ComboBoxAño = new javax.swing.JComboBox();
        botonNuevoEmpleado = new javax.swing.JButton();
        jLabel4 = new javax.swing.JLabel();
        jPanel2 = new javax.swing.JPanel();
        jLabelNombreVehiculo = new javax.swing.JLabel();
        jLabelPlaca = new javax.swing.JLabel();
        jLabelMarca = new javax.swing.JLabel();
        jLabelModelo = new javax.swing.JLabel();
        jLabelCilindraje = new javax.swing.JLabel();
        jLabelCapacidadCarga = new javax.swing.JLabel();
        jLabelSistemaFreno = new javax.swing.JLabel();
        jLabelChevistar = new javax.swing.JLabel();
        jLabelProveedor = new javax.swing.JLabel();
        jLabelFechaDeInicio = new javax.swing.JLabel();
        jLabelFechaFinal = new javax.swing.JLabel();
        jLabelValorPagado = new javax.swing.JLabel();
        textNombreVehiculo = new javax.swing.JTextField();
        textPlacaVehiculo = new javax.swing.JTextField();
        textMarcaVehiculo = new javax.swing.JTextField();
        textCilindrajeVehiculo = new javax.swing.JTextField();
        textCapacidadVehiculo = new javax.swing.JTextField();
        textProveedor = new javax.swing.JTextField();
        textValorPagado = new javax.swing.JTextField();
        botonAgregarVehiculo = new javax.swing.JButton();
        mostrarVehiculos = new javax.swing.JButton();
        jScrollPane2 = new javax.swing.JScrollPane();
        tablaVehiculos = new javax.swing.JTable();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        comboBoxChevistar = new javax.swing.JComboBox();
        comboBoxFreno = new javax.swing.JComboBox();
        comboxBoxFechaInicioDia = new javax.swing.JComboBox();
        comboxBoxFechaInicioMes = new javax.swing.JComboBox();
        comboxBoxFechaInicioAño = new javax.swing.JComboBox();
        comboxBoxFechaFinalDia = new javax.swing.JComboBox();
        comboxBoxFechaFinalMes = new javax.swing.JComboBox();
        comboxBoxFechaFinalAño = new javax.swing.JComboBox();
        comboBoxModelo = new javax.swing.JComboBox();
        jLabel6 = new javax.swing.JLabel();
        jPanel3 = new javax.swing.JPanel();
        jLabelIdentificadorNumerico = new javax.swing.JLabel();
        jLabelNombreDelServicio = new javax.swing.JLabel();
        jLabelFechadeRegistro = new javax.swing.JLabel();
        jLabelFechaSalida = new javax.swing.JLabel();
        jLabelFechaEntrega = new javax.swing.JLabel();
        jLabelNombreConductor = new javax.swing.JLabel();
        jLabelCiudaddeOrigen = new javax.swing.JLabel();
        jLabelCiudaddeDestino = new javax.swing.JLabel();
        jLabelPlacaEntrega = new javax.swing.JLabel();
        jLabelDescripcionItinerario = new javax.swing.JLabel();
        jScrollPane3 = new javax.swing.JScrollPane();
        tablaItinerario = new javax.swing.JTable();
        textIdentificador = new javax.swing.JTextField();
        botonAgregarItinerario = new javax.swing.JButton();
        botonMostrarItinerario = new javax.swing.JButton();
        jScrollPane5 = new javax.swing.JScrollPane();
        textDescripcion = new javax.swing.JTextArea();
        comboBoxFechaRegistroDia = new javax.swing.JComboBox();
        comboBoxFechaSalidaDia = new javax.swing.JComboBox();
        comboBoxFechaEntregaDia = new javax.swing.JComboBox();
        comboBoxFechaRegistroMes = new javax.swing.JComboBox();
        comboBoxFechaSalidaMes = new javax.swing.JComboBox();
        comboBoxFechaRegistroAño = new javax.swing.JComboBox();
        comboBoxFechaSalidaAño = new javax.swing.JComboBox();
        comboBoxFechaEntregaAño = new javax.swing.JComboBox();
        comboBoxFechaEntregaMes = new javax.swing.JComboBox();
        botonNuevoItinerario = new javax.swing.JButton();
        comboBoxConductor = new javax.swing.JComboBox();
        comboBoxPlacaEntrega = new javax.swing.JComboBox();
        comboorigen = new javax.swing.JComboBox();
        combodestino = new javax.swing.JComboBox();
        comboservicio = new javax.swing.JComboBox();
        jPanel5 = new javax.swing.JPanel();
        jLabel17 = new javax.swing.JLabel();
        buscarempleadocedula = new javax.swing.JButton();
        jScrollPane6 = new javax.swing.JScrollPane();
        tablaEmpleadoBuscado1 = new javax.swing.JTable();
        jLabel18 = new javax.swing.JLabel();
        buscarempleadonombre = new javax.swing.JButton();
        jScrollPane7 = new javax.swing.JScrollPane();
        tablaEmpleadoBuscado = new javax.swing.JTable();
        jLabel19 = new javax.swing.JLabel();
        textNominaTotal = new javax.swing.JTextField();
        botoncalcularnominatotal = new javax.swing.JButton();
        jLabel21 = new javax.swing.JLabel();
        buscarVehiculoPorPlaca = new javax.swing.JButton();
        jScrollPane8 = new javax.swing.JScrollPane();
        tablaVehiculos1 = new javax.swing.JTable();
        jScrollPane9 = new javax.swing.JScrollPane();
        tablaVehiculos2 = new javax.swing.JTable();
        verVehiculosConChevistar = new javax.swing.JButton();
        jLabel22 = new javax.swing.JLabel();
        jLabel23 = new javax.swing.JLabel();
        jLabel24 = new javax.swing.JLabel();
        textvalorchevistar = new javax.swing.JTextField();
        calcularvalorchevistar = new javax.swing.JButton();
        jLabel20 = new javax.swing.JLabel();
        jPanel4 = new javax.swing.JPanel();
        jScrollPane4 = new javax.swing.JScrollPane();
        tablaCiudades = new javax.swing.JTable();
        textCiudad = new javax.swing.JTextField();
        botonAgregarCiudad = new javax.swing.JButton();
        jLabel7 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        jLabel13 = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        jLabel15 = new javax.swing.JLabel();
        cargarCiudades = new javax.swing.JButton();
        jPanel6 = new javax.swing.JPanel();
        jScrollPane10 = new javax.swing.JScrollPane();
        tablaVehiculos3 = new javax.swing.JTable();
        jLabel25 = new javax.swing.JLabel();
        mostrarVehiculosFrenoABS = new javax.swing.JButton();
        Buscaritinerariosbogota = new javax.swing.JButton();
        Buscaritinerarioscali = new javax.swing.JButton();
        Buscaritinerariosmedellin = new javax.swing.JButton();
        Buscaritinerariostunja = new javax.swing.JButton();
        Buscaritinerariosdeotrasciudades = new javax.swing.JButton();
        jScrollPane11 = new javax.swing.JScrollPane();
        tablaItinerario1 = new javax.swing.JTable();
        jLabel26 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel16 = new javax.swing.JLabel();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        jMenuItem2 = new javax.swing.JMenuItem();
        jMenu2 = new javax.swing.JMenu();
        jMenuItem1 = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        setFont(new java.awt.Font("Arial Unicode MS", 0, 12));
        setForeground(new java.awt.Color(204, 204, 204));
        setResizable(false);

        org.jdesktop.beansbinding.Binding binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, titulo, org.jdesktop.beansbinding.ELProperty.create("Turbo Entregas LDTA"), this, org.jdesktop.beansbinding.BeanProperty.create("title"));
        bindingGroup.addBinding(binding);

        titulo.setFont(new java.awt.Font("Viner Hand ITC", 3, 36));
        titulo.setIcon(new javax.swing.ImageIcon("C:\\Users\\Diego Ruiz\\Documents\\NetBeansProjects\\trunk\\InterfazGrafica\\encomienda.jpg")); // NOI18N
        titulo.setText("TURBO ENTREGAS LTDA");

        jTabbedPane1.setBackground(new java.awt.Color(204, 204, 255));
        jTabbedPane1.setFont(new java.awt.Font("Tw Cen MT Condensed Extra Bold", 2, 18));

        textSueldo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                textSueldoActionPerformed(evt);
            }
        });

        botonAgregarEmpleado.setFont(new java.awt.Font("Tahoma", 1, 14));
        botonAgregarEmpleado.setText("Agregar Empleado");
        botonAgregarEmpleado.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonAgregarEmpleadoActionPerformed(evt);
            }
        });

        tablaEmpleados.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Cedula", "Nombre", "Apellido", "Fecha de Nacimiento", "correo", "sueldo", "telefono"
            }
        ));
        jScrollPane1.setViewportView(tablaEmpleados);

        mostrarEmpleados.setFont(new java.awt.Font("Tahoma", 1, 14));
        mostrarEmpleados.setText("Cargar Datos");
        mostrarEmpleados.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mostrarEmpleadosActionPerformed(evt);
            }
        });

        jLabelNombre.setText("Nombre");

        jLabelApellido.setText("Apellido");

        jLabelSueldo.setText("Sueldo");

        jLabelCedula.setText("Cedula");

        textCedula.setMaximumSize(new java.awt.Dimension(2000, 2000));

        jLabelFechaNacimiento.setText("Fecha de Nacimiento");

        jLabelCorreo.setText("Correo");

        jLabelTelefonoEmpleado.setText("Telefono");

        ComboBoxDia.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Dia", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));

        ComboBoxMes.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Mes", "Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre" }));

        ComboBoxAño.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Año", "2010", "2009", "2008", "2007", "2006", "2005", "2004", "2003", "2002", "2001", "2000", "1999", "1998", "1997", "1996", "1995", "1994", "1993", "1992", "1991", "1990", "1989", "1988", "1987", "1986", "1985", "1984", "1983", "1982", "1981", "1980", "1979", "1978", "1977", "1976", "1975", "1974", "1973", "1972", "1971", "1970", "1969", "1968", "1967", "1966", "1965", "1964", "1963", "1962", "1961", "1960", "1959", "1958", "1957", "1956", "1955", "1954", "1953", "1952", "1951", "1950" }));

        botonNuevoEmpleado.setFont(new java.awt.Font("Tahoma", 1, 14));
        botonNuevoEmpleado.setText("Nuevo Empleado");
        botonNuevoEmpleado.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonNuevoEmpleadoActionPerformed(evt);
            }
        });

        jLabel4.setIcon(new javax.swing.ImageIcon("C:\\Users\\Diego Ruiz\\Documents\\NetBeansProjects\\trunk\\InterfazGrafica\\empleado.png")); // NOI18N

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 1014, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(103, 103, 103))
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(41, 41, 41)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelFechaNacimiento)
                    .addComponent(jLabelNombre)
                    .addComponent(jLabelApellido)
                    .addComponent(jLabelCedula)
                    .addComponent(jLabelTelefonoEmpleado)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(jLabelCorreo)
                        .addComponent(jLabelSueldo)))
                .addGap(18, 18, 18)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(textTelefono)
                            .addComponent(textSueldo)
                            .addComponent(textCorreo, javax.swing.GroupLayout.PREFERRED_SIZE, 340, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(textNombre)
                            .addComponent(textApellido, javax.swing.GroupLayout.DEFAULT_SIZE, 312, Short.MAX_VALUE)
                            .addComponent(textCedula, javax.swing.GroupLayout.PREFERRED_SIZE, 341, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(29, 29, 29)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(botonNuevoEmpleado, javax.swing.GroupLayout.DEFAULT_SIZE, 170, Short.MAX_VALUE)
                            .addComponent(botonAgregarEmpleado, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(mostrarEmpleados, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(ComboBoxDia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(ComboBoxMes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(28, 28, 28)
                        .addComponent(ComboBoxAño, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 71, Short.MAX_VALUE)
                .addComponent(jLabel4)
                .addGap(133, 133, 133))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(38, 38, 38)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel4)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabelCedula)
                            .addComponent(textCedula, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabelNombre)
                            .addComponent(textNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(botonNuevoEmpleado))
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGap(20, 20, 20)
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabelApellido)
                                    .addComponent(textApellido, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(35, 35, 35)
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabelFechaNacimiento)
                                    .addComponent(ComboBoxDia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(ComboBoxMes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(ComboBoxAño, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGap(44, 44, 44)
                                .addComponent(botonAgregarEmpleado)))
                        .addGap(24, 24, 24)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabelCorreo)
                            .addComponent(textCorreo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(mostrarEmpleados))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabelSueldo)
                            .addComponent(textSueldo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(20, 20, 20)
                        .addComponent(jLabelTelefonoEmpleado))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(18, 18, 18)
                        .addComponent(textTelefono, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(26, 26, 26)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 239, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(29, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("Empleado", jPanel1);

        jLabelNombreVehiculo.setText("Nombre Vehiculo");

        jLabelPlaca.setText("Placa");

        jLabelMarca.setText("Marca");

        jLabelModelo.setText("Modelo");

        jLabelCilindraje.setText("Cilindraje");

        jLabelCapacidadCarga.setText("Capacidad Carga");

        jLabelSistemaFreno.setText("Sistema Freno");

        jLabelChevistar.setText("Chevistar");

        jLabelProveedor.setText("Proveedor");

        jLabelFechaDeInicio.setText("Fecha de Inicio");

        jLabelFechaFinal.setText("Fecha Final");

        jLabelValorPagado.setText("Valor Pagado");

        botonAgregarVehiculo.setFont(new java.awt.Font("Tahoma", 1, 14));
        botonAgregarVehiculo.setText("Agregar Vehiculo");
        botonAgregarVehiculo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonAgregarVehiculoActionPerformed(evt);
            }
        });

        mostrarVehiculos.setFont(new java.awt.Font("Tahoma", 1, 14));
        mostrarVehiculos.setText("Cargar Vehiculos");
        mostrarVehiculos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mostrarVehiculosActionPerformed(evt);
            }
        });

        tablaVehiculos.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Nombre Vehiculo", "Placa", "Marca", "Modelo", "Cilindraje", "Capacidad", "Freno", "Chevistar", "Proveedor", "F. Inicio", "F. Final", "Valor Pagado"
            }
        ));
        jScrollPane2.setViewportView(tablaVehiculos);

        jLabel1.setText("Kilogramos");

        jLabel2.setText("CC");

        comboBoxChevistar.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Si", "No" }));
        comboBoxChevistar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                comboBoxChevistarActionPerformed(evt);
            }
        });

        comboBoxFreno.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "", "Convencional", "ABS", "otro" }));

        comboxBoxFechaInicioDia.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Dia", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));

        comboxBoxFechaInicioMes.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Mes", "Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre" }));

        comboxBoxFechaInicioAño.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Año", "2010", "2011" }));

        comboxBoxFechaFinalDia.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Dia", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));

        comboxBoxFechaFinalMes.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Mes", "Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre" }));

        comboxBoxFechaFinalAño.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Año", "2010", "2011" }));

        comboBoxModelo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "", "2012", "2011", "2010", "2009", "2008", "2007", "2006", "2005", "2004", "2003", "2002", "2001", "2000", "1999", "1998", "1997", "1996", "1995", "1994", "1993", "1992", "1991", "1990" }));
        comboBoxModelo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                comboBoxModeloActionPerformed(evt);
            }
        });

        jLabel6.setIcon(new javax.swing.ImageIcon("C:\\Users\\Diego Ruiz\\Documents\\NetBeansProjects\\trunk\\InterfazGrafica\\camion.jpg")); // NOI18N

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                .addGap(53, 53, 53)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelFechaDeInicio)
                    .addComponent(jLabelNombreVehiculo)
                    .addComponent(jLabelPlaca, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelMarca)
                    .addComponent(jLabelModelo)
                    .addComponent(jLabelCilindraje)
                    .addComponent(jLabelCapacidadCarga)
                    .addComponent(jLabelSistemaFreno)
                    .addComponent(jLabelChevistar)
                    .addComponent(jLabelProveedor)
                    .addComponent(jLabelFechaFinal)
                    .addComponent(jLabelValorPagado))
                .addGap(19, 19, 19)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(comboxBoxFechaFinalDia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap())
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel2Layout.createSequentialGroup()
                            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(jPanel2Layout.createSequentialGroup()
                                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(jPanel2Layout.createSequentialGroup()
                                            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(comboBoxChevistar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addComponent(textValorPagado, javax.swing.GroupLayout.DEFAULT_SIZE, 467, Short.MAX_VALUE)
                                                .addGroup(jPanel2Layout.createSequentialGroup()
                                                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                                        .addComponent(textProveedor, javax.swing.GroupLayout.Alignment.LEADING)
                                                        .addComponent(textCilindrajeVehiculo, javax.swing.GroupLayout.Alignment.LEADING)
                                                        .addComponent(textCapacidadVehiculo, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 369, Short.MAX_VALUE))
                                                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                        .addGroup(jPanel2Layout.createSequentialGroup()
                                                            .addGap(18, 18, 18)
                                                            .addComponent(jLabel1))
                                                        .addGroup(jPanel2Layout.createSequentialGroup()
                                                            .addGap(32, 32, 32)
                                                            .addComponent(jLabel2)))))
                                            .addGap(28, 28, 28))
                                        .addGroup(jPanel2Layout.createSequentialGroup()
                                            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                                .addComponent(comboxBoxFechaFinalMes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addGroup(jPanel2Layout.createSequentialGroup()
                                                    .addComponent(comboxBoxFechaInicioDia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addGap(28, 28, 28)
                                                    .addComponent(comboxBoxFechaInicioMes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                            .addGap(30, 30, 30)
                                            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(comboxBoxFechaInicioAño, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addComponent(comboxBoxFechaFinalAño, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addGap(173, 173, 173))
                                        .addGroup(jPanel2Layout.createSequentialGroup()
                                            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                                .addComponent(textMarcaVehiculo, javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(textPlacaVehiculo, javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(textNombreVehiculo, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 370, Short.MAX_VALUE))
                                            .addGap(125, 125, 125)))
                                    .addGap(5, 5, 5))
                                .addGroup(jPanel2Layout.createSequentialGroup()
                                    .addComponent(comboBoxModelo, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
                            .addComponent(jLabel6)
                            .addGap(214, 214, 214))
                        .addGroup(jPanel2Layout.createSequentialGroup()
                            .addComponent(comboBoxFreno, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(395, 395, 395)
                            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(mostrarVehiculos, javax.swing.GroupLayout.PREFERRED_SIZE, 209, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(botonAgregarVehiculo, javax.swing.GroupLayout.PREFERRED_SIZE, 201, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGap(280, 280, 280)))))
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 1033, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(84, Short.MAX_VALUE))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabelNombreVehiculo)
                            .addComponent(textNombreVehiculo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabelPlaca)
                            .addComponent(textPlacaVehiculo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(textMarcaVehiculo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabelMarca))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabelModelo, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(comboBoxModelo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(textCilindrajeVehiculo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabelCilindraje)
                            .addComponent(jLabel2))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(textCapacidadVehiculo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jLabel1))
                            .addComponent(jLabelCapacidadCarga)))
                    .addComponent(jLabel6))
                .addGap(18, 18, 18)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelSistemaFreno)
                    .addComponent(comboBoxFreno, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(botonAgregarVehiculo))
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGap(24, 24, 24)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(comboBoxChevistar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabelChevistar))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabelProveedor)
                            .addComponent(textProveedor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(11, 11, 11)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabelFechaDeInicio)
                            .addComponent(comboxBoxFechaInicioDia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(comboxBoxFechaInicioMes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(comboxBoxFechaInicioAño, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(24, 24, 24)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabelFechaFinal)
                            .addComponent(comboxBoxFechaFinalDia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(comboxBoxFechaFinalMes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(comboxBoxFechaFinalAño, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGap(37, 37, 37)
                        .addComponent(mostrarVehiculos)))
                .addGap(18, 18, 18)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelValorPagado)
                    .addComponent(textValorPagado, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(32, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("Vehiculos", jPanel2);

        jLabelIdentificadorNumerico.setText("Identificador Numerico");

        jLabelNombreDelServicio.setText("Nombre del Servicio");

        jLabelFechadeRegistro.setText("Fecha de Registro");

        jLabelFechaSalida.setText("Fecha de Salida");

        jLabelFechaEntrega.setText("Fecha de Entrega");

        jLabelNombreConductor.setText("Nombre Conductor");

        jLabelCiudaddeOrigen.setText("Ciudad de Origen");

        jLabelCiudaddeDestino.setText("Ciudad de Destino");

        jLabelPlacaEntrega.setText("Placa del Vehiculo");

        jLabelDescripcionItinerario.setText("Descripcion Itinerario");

        tablaItinerario.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Identificador", "Servicio", "F. Registro", "F. Salida", "F. Entrega", "Conductor", "Placa Vehiculo", "C. Origen", "C. Destino", "Descripcion"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.Integer.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }
        });
        jScrollPane3.setViewportView(tablaItinerario);

        botonAgregarItinerario.setFont(new java.awt.Font("Tahoma", 1, 14));
        botonAgregarItinerario.setText("Agregar Itinerario");
        botonAgregarItinerario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonAgregarItinerarioActionPerformed(evt);
            }
        });

        botonMostrarItinerario.setFont(new java.awt.Font("Tahoma", 1, 14));
        botonMostrarItinerario.setText("Cargar Itinerarios");
        botonMostrarItinerario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonMostrarItinerarioActionPerformed(evt);
            }
        });

        textDescripcion.setColumns(20);
        textDescripcion.setRows(5);
        jScrollPane5.setViewportView(textDescripcion);

        comboBoxFechaRegistroDia.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Dia Registro", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));

        comboBoxFechaSalidaDia.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Dia Salida", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));

        comboBoxFechaEntregaDia.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Dia Entrega", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));

        comboBoxFechaRegistroMes.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Mes Registro", "Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre" }));

        comboBoxFechaSalidaMes.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Mes Salida", "Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre" }));

        comboBoxFechaRegistroAño.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Año Registro", "2010", "2011" }));

        comboBoxFechaSalidaAño.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Año Salida", "2010", "2011" }));

        comboBoxFechaEntregaAño.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Año Entrega", "2010", "2011" }));

        comboBoxFechaEntregaMes.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Mes Entrega", "Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre" }));

        botonNuevoItinerario.setFont(new java.awt.Font("Tahoma", 1, 14));
        botonNuevoItinerario.setText("Nuevo");
        botonNuevoItinerario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonNuevoItinerarioActionPerformed(evt);
            }
        });

        comboBoxPlacaEntrega.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                comboBoxPlacaEntregaActionPerformed(evt);
            }
        });

        comboservicio.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "", "Documentos", "Mercancias", "Valores", "Micromercadeo", "Centro Empresarial Logistico", "Empaque y Embalaje", "Comercio Virtual", "Servicios Internacionales", "Almacenamiento de Inventarios", "Administracion de Inventarios" }));

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGap(45, 45, 45)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addComponent(jLabelFechaEntrega)
                        .addContainerGap())
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabelDescripcionItinerario)
                            .addComponent(jLabelFechadeRegistro)
                            .addComponent(jLabelIdentificadorNumerico)
                            .addComponent(jLabelNombreDelServicio)
                            .addComponent(jLabelFechaSalida)
                            .addComponent(jLabelCiudaddeDestino)
                            .addComponent(jLabelNombreConductor)
                            .addComponent(jLabelPlacaEntrega)
                            .addComponent(jLabelCiudaddeOrigen))
                        .addGap(50, 50, 50)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 410, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(jPanel3Layout.createSequentialGroup()
                                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(comboservicio, 0, 321, Short.MAX_VALUE)
                                    .addComponent(textIdentificador, javax.swing.GroupLayout.DEFAULT_SIZE, 321, Short.MAX_VALUE)
                                    .addGroup(jPanel3Layout.createSequentialGroup()
                                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(comboBoxFechaRegistroDia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                                .addComponent(comboBoxFechaSalidaDia, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                .addComponent(comboBoxFechaEntregaDia, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(comboBoxFechaRegistroMes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                                .addComponent(comboBoxFechaSalidaMes, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                .addComponent(comboBoxFechaEntregaMes, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                                        .addGap(18, 18, 18)
                                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                                .addComponent(comboBoxFechaSalidaAño, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                .addComponent(comboBoxFechaEntregaAño, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                            .addComponent(comboBoxFechaRegistroAño, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addGap(40, 40, 40))
                                    .addComponent(comboBoxPlacaEntrega, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(comboBoxConductor, javax.swing.GroupLayout.PREFERRED_SIZE, 190, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                        .addComponent(combodestino, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                        .addComponent(comboorigen, javax.swing.GroupLayout.Alignment.LEADING, 0, 149, Short.MAX_VALUE)))
                                .addGap(186, 186, 186)
                                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(botonMostrarItinerario, javax.swing.GroupLayout.DEFAULT_SIZE, 171, Short.MAX_VALUE)
                                    .addComponent(botonAgregarItinerario, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(botonNuevoItinerario, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                .addGap(159, 159, 159)))
                        .addGap(47, 47, 47))))
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 1045, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(32, Short.MAX_VALUE))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGap(25, 25, 25)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(textIdentificador, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabelIdentificadorNumerico))
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel3Layout.createSequentialGroup()
                                .addGap(12, 12, 12)
                                .addComponent(jLabelNombreDelServicio))
                            .addGroup(jPanel3Layout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(comboservicio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabelFechadeRegistro)
                            .addComponent(comboBoxFechaRegistroDia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(comboBoxFechaRegistroMes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(comboBoxFechaRegistroAño, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabelFechaSalida)
                            .addComponent(comboBoxFechaSalidaDia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(comboBoxFechaSalidaMes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(comboBoxFechaSalidaAño, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                        .addComponent(botonNuevoItinerario)
                        .addGap(55, 55, 55)))
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel3Layout.createSequentialGroup()
                                .addGap(10, 10, 10)
                                .addComponent(jLabelFechaEntrega))
                            .addGroup(jPanel3Layout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(comboBoxFechaEntregaDia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(comboBoxFechaEntregaMes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(comboBoxFechaEntregaAño, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabelNombreConductor)
                            .addComponent(comboBoxConductor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabelPlacaEntrega)
                            .addComponent(comboBoxPlacaEntrega, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabelCiudaddeOrigen)
                            .addComponent(comboorigen, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(10, 10, 10)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabelCiudaddeDestino)
                            .addComponent(combodestino, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabelDescripcionItinerario)
                            .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGap(2, 2, 2)
                        .addComponent(botonAgregarItinerario)
                        .addGap(63, 63, 63)
                        .addComponent(botonMostrarItinerario)))
                .addGap(18, 18, 18)
                .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 228, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("Itinerario", jPanel3);

        jLabel17.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel17.setText("¿ Buscar un empleado por cedula ?");

        buscarempleadocedula.setFont(new java.awt.Font("Tahoma", 1, 14));
        buscarempleadocedula.setText("Buscar");
        buscarempleadocedula.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buscarempleadocedulaActionPerformed(evt);
            }
        });

        tablaEmpleadoBuscado1.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Cedula", "Nombre", "Apellido", "Fecha de Nacimiento", "correo", "sueldo", "telefono"
            }
        ));
        jScrollPane6.setViewportView(tablaEmpleadoBuscado1);

        jLabel18.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel18.setText("¿ Buscar un empleado por nombre ?");

        buscarempleadonombre.setFont(new java.awt.Font("Tahoma", 1, 14));
        buscarempleadonombre.setText("Buscar");
        buscarempleadonombre.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buscarempleadonombreActionPerformed(evt);
            }
        });

        tablaEmpleadoBuscado.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Cedula", "Nombre", "Apellido", "Fecha de Nacimiento", "correo", "sueldo", "telefono"
            }
        ));
        jScrollPane7.setViewportView(tablaEmpleadoBuscado);

        jLabel19.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel19.setText("Nomina total a pagar a los empleados");

        textNominaTotal.setFont(new java.awt.Font("Tahoma", 1, 14));

        botoncalcularnominatotal.setFont(new java.awt.Font("Tahoma", 1, 14));
        botoncalcularnominatotal.setText("Calcular");
        botoncalcularnominatotal.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botoncalcularnominatotalActionPerformed(evt);
            }
        });

        jLabel21.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel21.setText("¿ Buscar un vehiculo por placa ?");

        buscarVehiculoPorPlaca.setFont(new java.awt.Font("Tahoma", 1, 14));
        buscarVehiculoPorPlaca.setText("Buscar");
        buscarVehiculoPorPlaca.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buscarVehiculoPorPlacaActionPerformed(evt);
            }
        });

        tablaVehiculos1.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Nombre Vehiculo", "Placa", "Marca", "Modelo", "Cilindraje", "Capacidad", "Freno", "Chevistar", "Proveedor", "F. Inicio", "F. Final", "Valor Pagado"
            }
        ));
        jScrollPane8.setViewportView(tablaVehiculos1);

        tablaVehiculos2.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Nombre Vehiculo", "Placa", "Marca", "Modelo", "Cilindraje", "Capacidad", "Freno", "Chevistar", "Proveedor", "F. Inicio", "F. Final", "Valor Pagado"
            }
        ));
        jScrollPane9.setViewportView(tablaVehiculos2);

        verVehiculosConChevistar.setFont(new java.awt.Font("Tahoma", 1, 14));
        verVehiculosConChevistar.setText("Ver");
        verVehiculosConChevistar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                verVehiculosConChevistarActionPerformed(evt);
            }
        });

        jLabel22.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel22.setText("Vehiculos con chevistar");

        jLabel23.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel23.setText("Valor total a pagar por los vehiculos con Chevistar");

        jLabel24.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel24.setText("Pesos");

        textvalorchevistar.setFont(new java.awt.Font("Tahoma", 1, 14));

        calcularvalorchevistar.setFont(new java.awt.Font("Tahoma", 1, 14));
        calcularvalorchevistar.setText("Calcular");
        calcularvalorchevistar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                calcularvalorchevistarActionPerformed(evt);
            }
        });

        jLabel20.setFont(new java.awt.Font("Tahoma", 1, 14));
        jLabel20.setText("Pesos");

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addGap(49, 49, 49)
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel19)
                            .addComponent(jLabel21))
                        .addGap(41, 41, 41)
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel5Layout.createSequentialGroup()
                                .addComponent(botoncalcularnominatotal)
                                .addGap(34, 34, 34)
                                .addComponent(textNominaTotal, javax.swing.GroupLayout.PREFERRED_SIZE, 235, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(jLabel20))
                            .addComponent(buscarVehiculoPorPlaca))
                        .addGap(324, 324, 324))
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addGap(23, 23, 23)
                        .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 1014, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jScrollPane8, javax.swing.GroupLayout.DEFAULT_SIZE, 1048, Short.MAX_VALUE))
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addGap(92, 92, 92)
                        .addComponent(jLabel22)
                        .addGap(93, 93, 93)
                        .addComponent(verVehiculosConChevistar))
                    .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel5Layout.createSequentialGroup()
                            .addGap(43, 43, 43)
                            .addComponent(jLabel18)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(buscarempleadonombre))
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel5Layout.createSequentialGroup()
                            .addGap(46, 46, 46)
                            .addComponent(jLabel17)
                            .addGap(59, 59, 59)
                            .addComponent(buscarempleadocedula)))
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, 1033, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addGap(34, 34, 34)
                        .addComponent(jLabel23)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(calcularvalorchevistar)
                        .addGap(11, 11, 11)
                        .addComponent(textvalorchevistar, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jLabel24)))
                .addContainerGap())
            .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel5Layout.createSequentialGroup()
                    .addGap(25, 25, 25)
                    .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 1017, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(26, Short.MAX_VALUE)))
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addGap(38, 38, 38)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel17)
                    .addComponent(buscarempleadocedula))
                .addGap(79, 79, 79)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel18)
                    .addComponent(buscarempleadonombre))
                .addGap(18, 18, 18)
                .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(36, 36, 36)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel19)
                    .addComponent(textNominaTotal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(botoncalcularnominatotal)
                    .addComponent(jLabel20))
                .addGap(22, 22, 22)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel21)
                    .addComponent(buscarVehiculoPorPlaca))
                .addGap(27, 27, 27)
                .addComponent(jScrollPane8, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel22)
                    .addComponent(verVehiculosConChevistar))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(35, 35, 35)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel23)
                    .addComponent(jLabel24)
                    .addComponent(textvalorchevistar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(calcularvalorchevistar))
                .addContainerGap(39, Short.MAX_VALUE))
            .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel5Layout.createSequentialGroup()
                    .addGap(89, 89, 89)
                    .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(492, Short.MAX_VALUE)))
        );

        jTabbedPane1.addTab("Busquedas", jPanel5);

        tablaCiudades.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Nombre Ciudad "
            }
        ));
        jScrollPane4.setViewportView(tablaCiudades);

        textCiudad.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                textCiudadActionPerformed(evt);
            }
        });

        botonAgregarCiudad.setFont(new java.awt.Font("Tahoma", 1, 14));
        botonAgregarCiudad.setText("Agregar Ciudad");
        botonAgregarCiudad.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonAgregarCiudadActionPerformed(evt);
            }
        });

        jLabel7.setText("Ingrese el nombre de su ciudad");

        jLabel5.setIcon(new javax.swing.ImageIcon("C:\\Users\\Diego Ruiz\\Documents\\NetBeansProjects\\trunk\\InterfazGrafica\\ciudad.jpg")); // NOI18N

        jLabel8.setFont(new java.awt.Font("Tahoma", 3, 14));
        jLabel8.setText("Nuestros Origenes y Destinos");

        jLabel9.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel9.setText("Bogota");

        jLabel10.setIcon(new javax.swing.ImageIcon("C:\\Users\\Diego Ruiz\\Documents\\NetBeansProjects\\trunk\\InterfazGrafica\\tunja.jpg")); // NOI18N

        jLabel11.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel11.setText("Tunja");

        jLabel12.setIcon(new javax.swing.ImageIcon("C:\\Users\\Diego Ruiz\\Documents\\NetBeansProjects\\trunk\\InterfazGrafica\\medellin.jpg")); // NOI18N

        jLabel13.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel13.setText("Medellin");

        jLabel14.setIcon(new javax.swing.ImageIcon("C:\\Users\\Diego Ruiz\\Documents\\NetBeansProjects\\trunk\\InterfazGrafica\\cali.jpg")); // NOI18N

        jLabel15.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel15.setText("Cali");

        cargarCiudades.setFont(new java.awt.Font("Tahoma", 1, 14));
        cargarCiudades.setText("Cargar Ciudades");
        cargarCiudades.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cargarCiudadesActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addGap(56, 56, 56)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane4, 0, 0, Short.MAX_VALUE)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel7)
                            .addComponent(textCiudad, javax.swing.GroupLayout.PREFERRED_SIZE, 176, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(cargarCiudades)
                            .addComponent(botonAgregarCiudad))))
                .addGap(115, 115, 115)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 218, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel12)
                            .addComponent(jLabel13))
                        .addGap(27, 27, 27)
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel15)
                            .addComponent(jLabel14)))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel5)
                            .addComponent(jLabel9))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel11)
                            .addComponent(jLabel10))))
                .addContainerGap(11, Short.MAX_VALUE))
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addGap(23, 23, 23)
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(jPanel4Layout.createSequentialGroup()
                                .addComponent(jLabel11)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jLabel10))
                            .addGroup(jPanel4Layout.createSequentialGroup()
                                .addComponent(jLabel8)
                                .addGap(34, 34, 34)
                                .addComponent(jLabel9)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jLabel5)))
                        .addGap(34, 34, 34)
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel13)
                            .addComponent(jLabel15))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel12)
                            .addComponent(jLabel14)))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addGap(78, 78, 78)
                        .addComponent(jLabel7)
                        .addGap(31, 31, 31)
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(textCiudad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(botonAgregarCiudad))
                        .addGap(18, 18, 18)
                        .addComponent(cargarCiudades)
                        .addGap(50, 50, 50)
                        .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 303, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(68, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("Ciudad", jPanel4);

        tablaVehiculos3.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Nombre Vehiculo", "Placa", "Marca", "Modelo", "Cilindraje", "Capacidad", "Freno", "Chevistar", "Proveedor", "F. Inicio", "F. Final", "Valor Pagado"
            }
        ));
        jScrollPane10.setViewportView(tablaVehiculos3);

        jLabel25.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel25.setText("Busqueda de Vehiculo con freno ABS");

        mostrarVehiculosFrenoABS.setFont(new java.awt.Font("Tahoma", 1, 14));
        mostrarVehiculosFrenoABS.setText("Ver");
        mostrarVehiculosFrenoABS.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mostrarVehiculosFrenoABSActionPerformed(evt);
            }
        });

        Buscaritinerariosbogota.setFont(new java.awt.Font("Tahoma", 1, 14));
        Buscaritinerariosbogota.setText("Bogotá");
        Buscaritinerariosbogota.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BuscaritinerariosbogotaActionPerformed(evt);
            }
        });

        Buscaritinerarioscali.setFont(new java.awt.Font("Tahoma", 1, 14));
        Buscaritinerarioscali.setText("Cali");
        Buscaritinerarioscali.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BuscaritinerarioscaliActionPerformed(evt);
            }
        });

        Buscaritinerariosmedellin.setFont(new java.awt.Font("Tahoma", 1, 14));
        Buscaritinerariosmedellin.setText("Medellin");
        Buscaritinerariosmedellin.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BuscaritinerariosmedellinActionPerformed(evt);
            }
        });

        Buscaritinerariostunja.setFont(new java.awt.Font("Tahoma", 1, 14));
        Buscaritinerariostunja.setText("Tunja");
        Buscaritinerariostunja.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BuscaritinerariostunjaActionPerformed(evt);
            }
        });

        Buscaritinerariosdeotrasciudades.setFont(new java.awt.Font("Tahoma", 1, 14));
        Buscaritinerariosdeotrasciudades.setText("Otras");
        Buscaritinerariosdeotrasciudades.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BuscaritinerariosdeotrasciudadesActionPerformed(evt);
            }
        });

        tablaItinerario1.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Identificador", "Servicio", "F. Registro", "F. Salida", "F. Entrega", "Conductor", "Placa Vehiculo", "C. Origen", "C. Destino", "Descripcion"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.Integer.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }
        });
        jScrollPane11.setViewportView(tablaItinerario1);

        jLabel26.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel26.setText("Seleccione  la ciudad de la cual desea ver los itinerarios relacionados");

        javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
        jPanel6.setLayout(jPanel6Layout);
        jPanel6Layout.setHorizontalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel6Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jScrollPane10, javax.swing.GroupLayout.PREFERRED_SIZE, 1033, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel6Layout.createSequentialGroup()
                        .addGap(51, 51, 51)
                        .addComponent(jLabel25)
                        .addGap(51, 51, 51)
                        .addComponent(mostrarVehiculosFrenoABS))
                    .addGroup(jPanel6Layout.createSequentialGroup()
                        .addGap(41, 41, 41)
                        .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabel26)
                            .addGroup(jPanel6Layout.createSequentialGroup()
                                .addComponent(Buscaritinerariosbogota)
                                .addGap(106, 106, 106)
                                .addComponent(Buscaritinerarioscali)
                                .addGap(100, 100, 100)
                                .addComponent(Buscaritinerariosmedellin)))
                        .addGap(122, 122, 122)
                        .addComponent(Buscaritinerariostunja)
                        .addGap(117, 117, 117)
                        .addComponent(Buscaritinerariosdeotrasciudades)))
                .addContainerGap(25, Short.MAX_VALUE))
            .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel6Layout.createSequentialGroup()
                    .addGap(11, 11, 11)
                    .addComponent(jScrollPane11, javax.swing.GroupLayout.PREFERRED_SIZE, 1045, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(12, Short.MAX_VALUE)))
        );
        jPanel6Layout.setVerticalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addGap(35, 35, 35)
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel25)
                    .addComponent(mostrarVehiculosFrenoABS))
                .addGap(34, 34, 34)
                .addComponent(jScrollPane10, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(29, 29, 29)
                .addComponent(jLabel26)
                .addGap(28, 28, 28)
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(Buscaritinerariosbogota)
                    .addComponent(Buscaritinerarioscali)
                    .addComponent(Buscaritinerariosmedellin)
                    .addComponent(Buscaritinerariostunja)
                    .addComponent(Buscaritinerariosdeotrasciudades))
                .addContainerGap(343, Short.MAX_VALUE))
            .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel6Layout.createSequentialGroup()
                    .addGap(314, 314, 314)
                    .addComponent(jScrollPane11, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(194, Short.MAX_VALUE)))
        );

        jTabbedPane1.addTab("Listar", jPanel6);

        jLabel3.setText("Todos los derechos reservados, Copyright © 2011");

        jLabel16.setIcon(new javax.swing.ImageIcon("C:\\Users\\Diego Ruiz\\Documents\\NetBeansProjects\\trunk\\InterfazGrafica\\encomienda1.jpg")); // NOI18N

        jMenu1.setText("Exit");
        jMenu1.setFont(new java.awt.Font("Tw Cen MT Condensed Extra Bold", 2, 14));
        jMenu1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseExited(java.awt.event.MouseEvent evt) {
                jMenu1MouseExited(evt);
            }
        });

        jMenuItem2.setFont(new java.awt.Font("Tw Cen MT Condensed Extra Bold", 2, 14)); // NOI18N
        jMenuItem2.setIcon(new javax.swing.ImageIcon("C:\\Users\\Diego Ruiz\\Documents\\NetBeansProjects\\trunk\\InterfazGrafica\\salir.jpg")); // NOI18N
        jMenuItem2.setText("Salir");
        jMenuItem2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem2ActionPerformed(evt);
            }
        });
        jMenu1.add(jMenuItem2);

        jMenuBar1.add(jMenu1);

        jMenu2.setText("Credit");
        jMenu2.setFont(new java.awt.Font("Tw Cen MT Condensed Extra Bold", 2, 14));
        jMenu2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jMenu2MouseClicked(evt);
            }
        });

        jMenuItem1.setFont(new java.awt.Font("Tw Cen MT Condensed Extra Bold", 2, 14)); // NOI18N
        jMenuItem1.setIcon(new javax.swing.ImageIcon("C:\\Users\\Diego Ruiz\\Documents\\NetBeansProjects\\trunk\\InterfazGrafica\\informacion.jpg")); // NOI18N
        jMenuItem1.setText("Acerca de...");
        jMenuItem1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jMenuItem1MouseClicked(evt);
            }
        });
        jMenuItem1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem1ActionPerformed(evt);
            }
        });
        jMenu2.add(jMenuItem1);

        jMenuBar1.add(jMenu2);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(268, 268, 268)
                        .addComponent(titulo, javax.swing.GroupLayout.PREFERRED_SIZE, 543, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel16))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(428, 428, 428)
                        .addComponent(jLabel3))
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 1073, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(19, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(titulo, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel16))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 16, Short.MAX_VALUE)
                .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 650, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel3))
        );

        bindingGroup.bind();

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-1118)/2, (screenSize.height-808)/2, 1118, 808);
    }// </editor-fold>//GEN-END:initComponents

    private void jMenu1MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenu1MouseExited
    }//GEN-LAST:event_jMenu1MouseExited

    private void jMenu2MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenu2MouseClicked
        // TODO add your handling code here:
    }//GEN-LAST:event_jMenu2MouseClicked

    private void jMenuItem1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenuItem1MouseClicked
        // TODO add your handling code here:
    }//GEN-LAST:event_jMenuItem1MouseClicked

    private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem1ActionPerformed
        JOptionPane.showMessageDialog(this, "Diego Fernando Ruiz Sanchez\nJuan Camilo Cardenas\nKilian Huertas", "Elaboracion", JOptionPane.INFORMATION_MESSAGE);//Mensaje informativo
        // TODO add your handling code here:
    }//GEN-LAST:event_jMenuItem1ActionPerformed

    private void jMenuItem2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem2ActionPerformed

        int salida;
        salida = JOptionPane.showOptionDialog(
                null,
                "¿want to quit?",
                "Exit",
                JOptionPane.YES_NO_CANCEL_OPTION,
                JOptionPane.QUESTION_MESSAGE,
                null, // null para icono por defecto.
                new Object[]{"YES", "NO"}, // null para YES, NO y CANCEL
                null);
        switch (salida) {
            case 0:
                System.exit(0);
                break;

        }

        // TODO add your handling code here:
    }//GEN-LAST:event_jMenuItem2ActionPerformed

    /**
     * Carga las ciudades almacenadas en el archivo .dat
     * @param ActionEvent
     */
    private void cargarCiudadesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cargarCiudadesActionPerformed

        try {
            DefaultTableModel modelo = (DefaultTableModel) this.tablaCiudades.getModel(); // para manipular el objeto en un modelo
            modelo.setRowCount(0); // para vaciar el contenido de la tabla

            ManagerCiudad ciuda = new ManagerCiudad();
            vCiudad = ciuda.cargarDatosCiudad();
            for (int i = 0; i < vCiudad.size(); i++) {
                Ciudad carro = vCiudad.get(i);
                String ciudad = carro.getNombreciudad();

                Object nuevo[] = {ciudad};
                modelo.addRow(nuevo);

                this.comboorigen.addItem("" + ciudad);
                this.combodestino.addItem("" + ciudad);
            }

        } catch (FileNotFoundException ex) {
            Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IOException ex) {
            Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
        }


        // TODO add your handling code here:
}//GEN-LAST:event_cargarCiudadesActionPerformed

    private void botonAgregarCiudadActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonAgregarCiudadActionPerformed
        try {
            Ciudad ciu = new Ciudad();
            ManagerCiudad archi = new ManagerCiudad();


            String ciudad;

            ciudad = textCiudad.getText();
            if (ciudad.equals("")) {
                JOptionPane.showMessageDialog(this, "Campo vacio", "Error", JOptionPane.ERROR_MESSAGE);
            } else {
                JOptionPane.showMessageDialog(this, "Agregado con exito", "Ok", JOptionPane.INFORMATION_MESSAGE);
                textCiudad.setText(null);
                ciu.setNombreciudad(ciudad);

                ciu.getNombreciudad();

                vCiudad.add(ciu);

                archi.guardarDatosCiudad(vCiudad);
            }

        } catch (IOException ex) {
            System.out.println("mensaje " + ex.getMessage());
        }
    }//GEN-LAST:event_botonAgregarCiudadActionPerformed

    private void textCiudadActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_textCiudadActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_textCiudadActionPerformed

    private void calcularvalorchevistarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_calcularvalorchevistarActionPerformed

        if (vVehiculo.isEmpty()) {
            JOptionPane.showMessageDialog(this, "Cargue primero los datos de vehiculos", "Error", JOptionPane.ERROR_MESSAGE);
        } else {

            long valorpagado = 0;
            for (int i = 0; i < vVehiculo.size(); i++) {
                try {
                    vVehiculo = managervehiculo.cargarDatosVehiculo();
                } catch (FileNotFoundException ex) {
                    Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
                } catch (IOException ex) {
                    Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
                } catch (ClassNotFoundException ex) {
                    Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
                }
                Vehiculo carrito = vVehiculo.get(i);
                //declaracion de variables locales


                valorpagado = valorpagado + carrito.getValorpagado();
            }
            textvalorchevistar.setText("" + valorpagado);

        }


        // TODO add your handling code here:
}//GEN-LAST:event_calcularvalorchevistarActionPerformed

    private void verVehiculosConChevistarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_verVehiculosConChevistarActionPerformed

        if (vVehiculo.isEmpty()) {
            JOptionPane.showMessageDialog(this, "Cargue primero los datos de vehiculos", "Error", JOptionPane.ERROR_MESSAGE);
        } else {
            String buscado = "Si";
            int encuentra = 0;
            int encuentra1 = 0;
            int cuenta = 0;
            for (int i = 0; i < vVehiculo.size(); i++) {
                cuenta++;
                if (buscado.equals(vVehiculo.get(i).getChevistar())) {
                    DefaultTableModel modelo = (DefaultTableModel) this.tablaVehiculos2.getModel(); // para manipular el objeto en un modelo

                    try {
                        vVehiculo = managervehiculo.cargarDatosVehiculo();
                    } catch (FileNotFoundException ex) {
                        Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
                    } catch (IOException ex) {
                        Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
                    } catch (ClassNotFoundException ex) {
                        Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
                    }
                    Vehiculo carrito = vVehiculo.get(i);
                    //declaracion de variables locales
                    String nombrevehiculo;
                    String placa;
                    String marca;
                    int modelovehiculo;
                    int cilindraje;
                    int capacidaddecargar;
                    String sistemafreno;
                    String chevistar;
                    String proveedor;
                    String fechadeinicio;
                    String fechafinal;
                    int valorpagado;

                    nombrevehiculo = carrito.getNombrevehiculo();
                    placa = carrito.getPlaca();
                    marca = carrito.getMarca();
                    modelovehiculo = carrito.getModelo();
                    cilindraje = carrito.getCilindraje();
                    capacidaddecargar = carrito.getCapacidaddecargar();
                    sistemafreno = carrito.getSistemafreno();
                    chevistar = carrito.getChevistar();
                    proveedor = carrito.getProveedor();
                    fechadeinicio = carrito.getFechadeinicio();
                    fechafinal = carrito.getFechafinal();
                    valorpagado = carrito.getValorpagado();

                    Object nuevo[] = {nombrevehiculo, placa, marca, modelovehiculo, cilindraje, capacidaddecargar, sistemafreno, chevistar, proveedor, fechadeinicio, fechafinal, valorpagado};
                    modelo.addRow(nuevo);

                } else {
                    encuentra++;
                }
            }
            //
            //            DefaultTableModel modelo = (DefaultTableModel) this.tablaVehiculos2.getModel(); // para manipular el objeto en un modelo
            //            modelo.setRowCount(0);

            for (int i = 0; i < vVehiculo.size(); i++) {
                if (encuentra == vVehiculo.size()) {
                    encuentra1 = 1;
                }
            }
            if (encuentra1 == 1) {
                JOptionPane.showMessageDialog(this, "No fue encontrado", "Error", JOptionPane.ERROR_MESSAGE);
            }
        }


        // TODO add your handling code here:
}//GEN-LAST:event_verVehiculosConChevistarActionPerformed

    private void buscarVehiculoPorPlacaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buscarVehiculoPorPlacaActionPerformed
        if (vVehiculo.isEmpty()) {
            JOptionPane.showMessageDialog(this, "Cargue primero los datos de vehiculos", "Error", JOptionPane.ERROR_MESSAGE);
        } else {
            String buscado = JOptionPane.showInputDialog("Digite placa a buscar");
            int encuentra = 0;
            int encuentra1 = 0;
            for (int i = 0; i < vVehiculo.size(); i++) {
                if (buscado.equals(vVehiculo.get(i).getPlaca())) {
                    DefaultTableModel modelo = (DefaultTableModel) this.tablaVehiculos1.getModel(); // para manipular el objeto en un modelo

                    modelo.setRowCount(0);
                    try {
                        vVehiculo = managervehiculo.cargarDatosVehiculo();
                    } catch (FileNotFoundException ex) {
                        Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
                    } catch (IOException ex) {
                        Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
                    } catch (ClassNotFoundException ex) {
                        Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
                    }
                    Vehiculo carrito = vVehiculo.get(i);
                    //declaracion de variables locales
                    String nombrevehiculo;
                    String placa;
                    String marca;
                    int modelovehiculo;
                    int cilindraje;
                    int capacidaddecargar;
                    String sistemafreno;
                    String chevistar;
                    String proveedor;
                    String fechadeinicio;
                    String fechafinal;
                    int valorpagado;

                    nombrevehiculo = carrito.getNombrevehiculo();
                    placa = carrito.getPlaca();
                    marca = carrito.getMarca();
                    modelovehiculo = carrito.getModelo();
                    cilindraje = carrito.getCilindraje();
                    capacidaddecargar = carrito.getCapacidaddecargar();
                    sistemafreno = carrito.getSistemafreno();
                    chevistar = carrito.getChevistar();
                    proveedor = carrito.getProveedor();
                    fechadeinicio = carrito.getFechadeinicio();
                    fechafinal = carrito.getFechafinal();
                    valorpagado = carrito.getValorpagado();

                    Object nuevo[] = {nombrevehiculo, placa, marca, modelovehiculo, cilindraje, capacidaddecargar, sistemafreno, chevistar, proveedor, fechadeinicio, fechafinal, valorpagado};
                    modelo.addRow(nuevo);

                } else {
                    encuentra++;
                }
            }
            for (int i = 0; i < vVehiculo.size(); i++) {
                if (encuentra == vVehiculo.size()) {
                    encuentra1 = 1;
                }
            }
            if (encuentra1 == 1) {
                JOptionPane.showMessageDialog(this, "No fue encontrado", "Error", JOptionPane.ERROR_MESSAGE);
            }
        }
        // TODO add your handling code here:
}//GEN-LAST:event_buscarVehiculoPorPlacaActionPerformed

    private void botoncalcularnominatotalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botoncalcularnominatotalActionPerformed
        // TODO add your handling code here:
        if (vEmpleado.isEmpty()) {
            JOptionPane.showMessageDialog(this, "Cargue primero los datos", "Error", JOptionPane.ERROR_MESSAGE);
        } else {
            try {
                vEmpleado = managerempleado.cargarDatosEmpleado();
            } catch (FileNotFoundException ex) {
                Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
            } catch (IOException ex) {
                Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
            } catch (ClassNotFoundException ex) {
                Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
            }
            long sueldo = 0;
            for (int i = 0; i < vEmpleado.size(); i++) {
                Empleado e = vEmpleado.get(i);
                sueldo = sueldo + e.getSueldo();
            }
            textNominaTotal.setText("" + sueldo);
        }
}//GEN-LAST:event_botoncalcularnominatotalActionPerformed

    private void buscarempleadonombreActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buscarempleadonombreActionPerformed
        if (vEmpleado.isEmpty()) {
            JOptionPane.showMessageDialog(this, "Cargue primero los datos", "Error", JOptionPane.ERROR_MESSAGE);
        } else {
            String buscado = JOptionPane.showInputDialog("Digite nombre a buscar");
            int encuentra = 0;
            int encuentra1 = 0;
            for (int i = 0; i < vEmpleado.size(); i++) {
                if (buscado.equals(vEmpleado.get(i).getNombre())) {
                    DefaultTableModel modelo = (DefaultTableModel) this.tablaEmpleadoBuscado1.getModel(); // para manipular el objeto en un modelo
                    modelo.setRowCount(0);
                    try {
                        vEmpleado = managerempleado.cargarDatosEmpleado();

                        Empleado e = vEmpleado.get(i);
                        //declaracion de variables locales

                        long cedula = e.getCedula();
                        String nombre = e.getNombre();
                        String apellido = e.getApellido();
                        String fechadenacimiento = e.getFechaDeNacimiento();
                        String correo = e.getCorreo();
                        int sueldo = e.getSueldo();
                        int telefono = e.getTelefono();

                        //Encapsulamiento para el objeto nuevo
                        Object nuevo[] = {cedula, nombre, apellido, fechadenacimiento, correo, sueldo, telefono};
                        modelo.addRow(nuevo);


                    } catch (FileNotFoundException ex) {
                        Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
                    } catch (IOException ex) {
                        Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
                    } catch (ClassNotFoundException ex) {
                        Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
                    }

                } else {
                    encuentra++;
                }
            }
            for (int i = 0; i < vEmpleado.size(); i++) {
                if (encuentra == vEmpleado.size()) {
                    encuentra1 = 1;
                }
            }
            if (encuentra1 == 1) {
                JOptionPane.showMessageDialog(this, "No fue encontrado", "Error", JOptionPane.ERROR_MESSAGE);
            }
        }
        // TODO add your handling code here:
}//GEN-LAST:event_buscarempleadonombreActionPerformed

    private void buscarempleadocedulaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buscarempleadocedulaActionPerformed

        if (vEmpleado.isEmpty()) {
            JOptionPane.showMessageDialog(this, "Cargue primero los datos de empleados", "Error", JOptionPane.ERROR_MESSAGE);
        } else {
            String documento = JOptionPane.showInputDialog("Ingrese documento del empleado a buscar");
            long numero = Long.parseLong(documento);
            int encuentra = 0;
            int encuentra1 = 0;
            for (int i = 0; i < vEmpleado.size(); i++) {
                if (numero == vEmpleado.get(i).getCedula()) {
                    DefaultTableModel modelo = (DefaultTableModel) this.tablaEmpleadoBuscado.getModel(); // para manipular el objeto en un modelo
                    modelo.setRowCount(0);
                    try {
                        vEmpleado = managerempleado.cargarDatosEmpleado();

                        Empleado e = vEmpleado.get(i);
                        //declaracion de variables locales

                        long cedula = e.getCedula();
                        String nombre = e.getNombre();
                        String apellido = e.getApellido();
                        String fechadenacimiento = e.getFechaDeNacimiento();
                        String correo = e.getCorreo();
                        int sueldo = e.getSueldo();
                        int telefono = e.getTelefono();

                        //Encapsulamiento para el objeto nuevo
                        Object nuevo[] = {cedula, nombre, apellido, fechadenacimiento, correo, sueldo, telefono};
                        modelo.addRow(nuevo);


                    } catch (FileNotFoundException ex) {
                        Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
                    } catch (IOException ex) {
                        Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
                    } catch (ClassNotFoundException ex) {
                        Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
                    }

                } else {
                    encuentra++;
                }
            }
            for (int i = 0; i < vEmpleado.size(); i++) {
                if (encuentra == vEmpleado.size()) {
                    encuentra1 = 1;
                }
            }
            if (encuentra1 == 1) {
                JOptionPane.showMessageDialog(this, "No fue encontrado", "Error", JOptionPane.ERROR_MESSAGE);
            }
        }
        // TODO add your handling code here:
}//GEN-LAST:event_buscarempleadocedulaActionPerformed

    private void comboBoxPlacaEntregaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_comboBoxPlacaEntregaActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_comboBoxPlacaEntregaActionPerformed

    private void botonNuevoItinerarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonNuevoItinerarioActionPerformed

        //Para cuando se ingrese un nuevo Itinerario esto hace que los campos vuelvan a estar vacios
        this.comboservicio.setSelectedItem(" ");
        this.comboservicio.setSelectedItem(" ");
        this.comboBoxFechaRegistroDia.setSelectedItem("Dia Registro");
        this.comboBoxFechaRegistroMes.setSelectedItem("Mes Registro");
        this.comboBoxFechaRegistroAño.setSelectedItem("Año Registro");
        this.comboBoxFechaEntregaDia.setSelectedItem("Dia Entrega");
        this.comboBoxFechaEntregaMes.setSelectedItem("Mes Entrega");
        this.comboBoxFechaEntregaAño.setSelectedItem("Año Entrega");
        this.comboBoxFechaSalidaDia.setSelectedItem("Dia Salida");
        this.comboBoxFechaSalidaMes.setSelectedItem("Mes Salida");
        this.comboBoxFechaSalidaAño.setSelectedItem("Año Salida");
        this.comboBoxConductor.setSelectedItem(" ");
        this.comboorigen.setSelectedItem(" ");
        this.combodestino.setSelectedItem(" ");
        this.comboBoxPlacaEntrega.setSelectedItem(" ");
        this.textDescripcion.setText(null);


        // TODO add your handling code here:
}//GEN-LAST:event_botonNuevoItinerarioActionPerformed

    private void botonMostrarItinerarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonMostrarItinerarioActionPerformed

        DefaultTableModel modelo = (DefaultTableModel) this.tablaItinerario.getModel(); // para manipular el objeto en un modelo

        modelo.setRowCount(0);
        try {
            vItinerario = manageritinerario.cargarDatosItinerario();
        } catch (FileNotFoundException ex) {
            Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IOException ex) {
            Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
        }

        for (int i = 0; i < vItinerario.size(); i++) {

            Itinerario itine = vItinerario.get(i);
            //declaracion de variables locales
            int identificador;
            String nombreservicio;
            String fecharegistro;
            String fechasalidad;
            String fechaentrega;
            String conductor;
            String ciudadorigen;
            String ciudaddestino;
            String placaentrega;
            String descripcion;


            identificador = itine.getIdentificador();
            nombreservicio = itine.getNombreservicio();
            fecharegistro = itine.getFecharegistro();
            fechasalidad = itine.getFechasalidad();
            fechaentrega = itine.getFechaentrega();
            conductor = itine.getConductor();
            ciudadorigen = itine.getCiudadorigen();
            ciudaddestino = itine.getCiudaddestino();
            placaentrega = itine.getPlacaentrega();
            descripcion = itine.getDescripcion();


            Object nuevo[] = {identificador, nombreservicio, fecharegistro, fechasalidad, fechaentrega, conductor, placaentrega, ciudadorigen, ciudaddestino, descripcion};

            modelo.addRow(nuevo);

        }

    }//GEN-LAST:event_botonMostrarItinerarioActionPerformed

    private void botonAgregarItinerarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonAgregarItinerarioActionPerformed


        try {

            Itinerario itinerario = new Itinerario();//Instanciar objeto de la clase Itinerario
            //declaracion de variables locales
            int identificador;
            String nombreservicio;
            String fecharegistro;
            String fechasalidad;
            String fechaentrega;
            String conductor;
            String ciudadorigen;
            String ciudaddestino;
            String placaentrega;
            String descripcion;
            int verifica = 0;

            for (int i = 0; i < vItinerario.size(); i++) {//Recorrer el vector para identificar si hay una cedula repetida
                identificador = Integer.parseInt(textIdentificador.getText());
                if (vItinerario.get(i).getIdentificador() == identificador) {
                    JOptionPane.showMessageDialog(null, "Ya existe un identificador", "error", JOptionPane.ERROR_MESSAGE);
                    verifica = 1;//Se almacena el error y se adjunta al vector
                } else {
                    verifica = 0;
                }
            }

            boolean error;
            error = false;
            try {
                identificador = Integer.parseInt(textIdentificador.getText());

                identificador = Integer.valueOf(identificador).intValue();
                itinerario.setIdentificador(identificador);


            } catch (NumberFormatException e) {
                error = true;
                if (error) {
                    JOptionPane.showMessageDialog(null, "Error al intentar validar el identificador numerico", "Error", JOptionPane.ERROR_MESSAGE);
                }
            }


            nombreservicio = comboservicio.getSelectedItem().toString();
            fecharegistro = "" + comboBoxFechaRegistroDia.getSelectedItem().toString() + "/" + comboBoxFechaRegistroMes.getSelectedItem().toString() + "/" + comboBoxFechaRegistroAño.getSelectedItem().toString();
            fechasalidad = "" + comboBoxFechaSalidaDia.getSelectedItem().toString() + "/" + comboBoxFechaSalidaMes.getSelectedItem().toString() + "/" + comboBoxFechaSalidaAño.getSelectedItem().toString();
            fechaentrega = "" + comboBoxFechaEntregaDia.getSelectedItem().toString() + "/" + comboBoxFechaEntregaMes.getSelectedItem().toString() + "/" + comboBoxFechaEntregaAño.getSelectedItem().toString();
            conductor = this.comboBoxConductor.getSelectedItem().toString();
            ciudadorigen = comboorigen.getSelectedItem().toString();
            ciudaddestino = combodestino.getSelectedItem().toString();
            placaentrega = this.comboBoxPlacaEntrega.getSelectedItem().toString();
            descripcion = textDescripcion.getText();

            itinerario.setNombreservicio(nombreservicio);
            itinerario.setFecharegistro(fecharegistro);
            itinerario.setFechasalidad(fechasalidad);
            itinerario.setFechaentrega(fechaentrega);
            itinerario.setConductor(conductor);
            itinerario.setCiudadorigen(ciudadorigen);
            itinerario.setCiudaddestino(ciudaddestino);
            itinerario.setPlacaentrega(placaentrega);
            itinerario.setDescripcion(descripcion);

            if (this.textIdentificador.getText().equals("") && this.comboservicio.getSelectedItem().toString().equals(" ") && this.comboBoxConductor.getSelectedItem().toString().equals("") && this.comboorigen.getSelectedItem().toString().equals("") && this.combodestino.getSelectedItem().toString().equals("") && this.comboBoxPlacaEntrega.getSelectedItem().toString().equals(" ") && this.textDescripcion.getText().equals("") && this.comboBoxFechaRegistroDia.getSelectedItem().toString().equals("Dia Registro") || this.comboBoxFechaRegistroMes.getSelectedItem().toString().equals("Mes Registro") || this.comboBoxFechaRegistroAño.getSelectedItem().toString().equals("Año Registro") && this.comboBoxFechaSalidaAño.getSelectedItem().toString().equals("Año Salida") || this.comboBoxFechaSalidaMes.getSelectedItem().toString().equals("Mes Salida") || this.comboBoxFechaSalidaDia.getSelectedItem().toString().equals("Dia Salida") && this.comboBoxFechaEntregaDia.getSelectedItem().toString().equals("Dia Entrega") || this.comboBoxFechaEntregaMes.getSelectedItem().toString().equals("Mes Entrega") || this.comboBoxFechaEntregaAño.getSelectedItem().toString().equals("Año Entrega")) {//Se hace la validacion que el textfield no este vacio
                JOptionPane.showMessageDialog(null, "Error no se puede agregar", "error", JOptionPane.ERROR_MESSAGE);
            } else {
                if (verifica == 0) {
                    JOptionPane.showMessageDialog(null, "Agregado Nuevo Itinerario", "Mensaje", JOptionPane.INFORMATION_MESSAGE);
                    vItinerario.add(itinerario);
                    manageritinerario.guardarDatosItinerario(vItinerario);
                } else {
                    JOptionPane.showMessageDialog(null, "No se ha podido agregar Itinerario", "error", JOptionPane.ERROR_MESSAGE);
                }
            }
        } catch (Exception ex) {
            System.out.println("Mensaje " + ex.getMessage());
        }
}//GEN-LAST:event_botonAgregarItinerarioActionPerformed

    private void comboBoxModeloActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_comboBoxModeloActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_comboBoxModeloActionPerformed

    private void comboBoxChevistarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_comboBoxChevistarActionPerformed

        String si = this.comboBoxChevistar.getSelectedItem().toString();
        String no = this.comboBoxChevistar.getSelectedItem().toString();

        if (si.equals("Si")) {
            textProveedor.setEditable(true);
            comboxBoxFechaInicioDia.setEnabled(true);
            comboxBoxFechaInicioMes.setEnabled(true);
            comboxBoxFechaInicioAño.setEnabled(true);
            comboxBoxFechaFinalDia.setEnabled(true);
            comboxBoxFechaFinalMes.setEnabled(true);
            comboxBoxFechaFinalAño.setEnabled(true);
            textValorPagado.setEditable(true);
        }
        if (no.equals("No")) {

            textProveedor.setEditable(false);
            comboxBoxFechaInicioDia.setEnabled(false);
            comboxBoxFechaInicioMes.setEnabled(false);
            comboxBoxFechaInicioAño.setEnabled(false);
            comboxBoxFechaFinalDia.setEnabled(false);
            comboxBoxFechaFinalMes.setEnabled(false);
            comboxBoxFechaFinalAño.setEnabled(false);
            textValorPagado.setEditable(false);
        }
}//GEN-LAST:event_comboBoxChevistarActionPerformed

    private void mostrarVehiculosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mostrarVehiculosActionPerformed

        DefaultTableModel modelo = (DefaultTableModel) this.tablaVehiculos.getModel(); // para manipular el objeto en un modelo

        modelo.setRowCount(0);
        try {
            vVehiculo = managervehiculo.cargarDatosVehiculo();
        } catch (FileNotFoundException ex) {
            Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IOException ex) {
            Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
        }
        for (int i = 0; i < vVehiculo.size(); i++) {//Recorrer el vector para identificar si hay una cedula repetida
            Vehiculo carrito = vVehiculo.get(i);
            //declaracion de variables locales
            String nombrevehiculo;
            String placa;
            String marca;
            int modelovehiculo;
            int cilindraje;
            int capacidaddecargar;
            String sistemafreno;
            String chevistar;
            String proveedor;
            String fechadeinicio;
            String fechafinal;
            int valorpagado;

            nombrevehiculo = carrito.getNombrevehiculo();
            placa = carrito.getPlaca();
            marca = carrito.getMarca();
            modelovehiculo = carrito.getModelo();
            cilindraje = carrito.getCilindraje();
            capacidaddecargar = carrito.getCapacidaddecargar();
            sistemafreno = carrito.getSistemafreno();
            chevistar = carrito.getChevistar();
            proveedor = carrito.getProveedor();
            fechadeinicio = carrito.getFechadeinicio();
            fechafinal = carrito.getFechafinal();
            valorpagado = carrito.getValorpagado();

            Object nuevo[] = {nombrevehiculo, placa, marca, modelovehiculo, cilindraje, capacidaddecargar, sistemafreno, chevistar, proveedor, fechadeinicio, fechafinal, valorpagado};
            modelo.addRow(nuevo);

            this.comboBoxPlacaEntrega.addItem("" + placa);

        }
    }//GEN-LAST:event_mostrarVehiculosActionPerformed

    private void botonAgregarVehiculoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonAgregarVehiculoActionPerformed
        // casting de excepciones
        try {
            //instanciamiento de un objeto de la clase Vehiculo
            Vehiculo vehiculo = new Vehiculo();
            //declaracion de variables locales
            String nombrevehiculo;
            String placa = "";
            String marca;
            int modelo;
            int cilindraje;
            int capacidaddecargar;
            String sistemafreno;
            String chevistar;
            String proveedor;
            String fechadeinicio;
            String fechafinal;
            int valorpagado;
            int verifica = 0;

            boolean error;
            error = false;
            try {
                cilindraje = Integer.parseInt(textCilindrajeVehiculo.getText());
                capacidaddecargar = Integer.parseInt(textCapacidadVehiculo.getText());
                vehiculo.setCilindraje(cilindraje);
                vehiculo.setCapacidaddecargar(capacidaddecargar);
                cilindraje = Integer.valueOf(cilindraje).intValue();
                capacidaddecargar = Integer.valueOf(capacidaddecargar).intValue();
            } catch (NumberFormatException e) {
                error = true;
                if (error) {
                    JOptionPane.showMessageDialog(null, "ingrese datos", "Error", JOptionPane.ERROR_MESSAGE);//Mensaje de error
                }
            }
            //Traer lo que fue ingresado por el usuario en el  textflied
            nombrevehiculo = textNombreVehiculo.getText();
            placa = textPlacaVehiculo.getText();
            marca = textMarcaVehiculo.getText();
            modelo = Integer.parseInt(comboBoxModelo.getSelectedItem().toString());

            sistemafreno = comboBoxFreno.getSelectedItem().toString();
            chevistar = comboBoxChevistar.getSelectedItem().toString();

            if (this.comboBoxChevistar.getSelectedItem().toString().equals("No")) {
                vehiculo.setNombrevehiculo(nombrevehiculo);
                vehiculo.setPlaca(placa);
                vehiculo.setMarca(marca);
                vehiculo.setModelo(modelo);
                vehiculo.setSistemafreno(sistemafreno);
                vehiculo.setChevistar(chevistar);
                vehiculo.setProveedor("No aplica");
                vehiculo.setFechadeinicio("No aplica");
                vehiculo.setFechafinal("No aplica");
                vehiculo.setValorpagado(0);
            } else {
                vehiculo.setNombrevehiculo(nombrevehiculo);
                vehiculo.setPlaca(placa);
                vehiculo.setMarca(marca);
                vehiculo.setModelo(modelo);
                vehiculo.setSistemafreno(sistemafreno);
                vehiculo.setChevistar(chevistar);
                proveedor = textProveedor.getText();
                fechadeinicio = "" + comboxBoxFechaInicioDia.getSelectedItem().toString() + "/" + comboxBoxFechaInicioMes.getSelectedItem().toString() + "/" + comboxBoxFechaInicioAño.getSelectedItem().toString();
                fechafinal = "" + comboxBoxFechaFinalDia.getSelectedItem().toString() + "/" + comboxBoxFechaFinalMes.getSelectedItem().toString() + "/" + comboxBoxFechaFinalAño.getSelectedItem().toString();
                valorpagado = Integer.parseInt(textValorPagado.getText());
                vehiculo.setProveedor(proveedor);
                vehiculo.setFechadeinicio(fechadeinicio);
                vehiculo.setFechafinal(fechafinal);
                vehiculo.setValorpagado(valorpagado);
            }

            if (this.textNombreVehiculo.getText().equals(" ") || this.textPlacaVehiculo.getText().equals(" ") || this.textMarcaVehiculo.getText().equals(" ") || this.comboBoxModelo.getSelectedItem().toString().equals(" ") || this.textCilindrajeVehiculo.getText().equals(" ") || this.textCapacidadVehiculo.getText().equals(" ") || this.comboBoxFreno.getSelectedItem().toString().equals(" ") || this.comboBoxChevistar.getSelectedItem().toString().equals(" ")) {//Se hace la validacion que el textfield no este vacio
                JOptionPane.showMessageDialog(null, "no se puede agregar vehiculo", "error", JOptionPane.ERROR_MESSAGE);//Mensaje de error

            } else {
                if (verifica == 0) {
                    JOptionPane.showMessageDialog(null, "su vehiculo fue agregado", "Mensaje", JOptionPane.INFORMATION_MESSAGE);//Mensaje de error

                } else {
                    JOptionPane.showMessageDialog(null, "No se ha podido agregar", "error", JOptionPane.ERROR_MESSAGE);//Mensaje de error
                }
            }


            vVehiculo.add(vehiculo);
            this.comboBoxPlacaEntrega.addItem(placa);
            managervehiculo.guardarDatosVehiculo(vVehiculo);


        } catch (Exception ex) {
            System.out.println("Mensaje " + ex.getMessage());
        }
    }//GEN-LAST:event_botonAgregarVehiculoActionPerformed

    private void botonNuevoEmpleadoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonNuevoEmpleadoActionPerformed
        //Para cuando se ingrese una nueva fecha esto hace que los campos vuelvan a estar vacios
        this.textCedula.setText(null);
        this.textApellido.setText(null);
        this.textNombre.setText(null);
        this.textCorreo.setText(null);
        this.textSueldo.setText(null);
        this.textTelefono.setText(null);
        this.ComboBoxDia.setSelectedItem("Dia");
        this.ComboBoxMes.setSelectedItem("Mes");
        this.ComboBoxAño.setSelectedItem("Año");
    }//GEN-LAST:event_botonNuevoEmpleadoActionPerformed

    private void mostrarEmpleadosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mostrarEmpleadosActionPerformed


        DefaultTableModel modelo = (DefaultTableModel) this.tablaEmpleados.getModel(); // para manipular el objeto en un modelo

        modelo.setRowCount(0);

        try {

            vEmpleado = managerempleado.cargarDatosEmpleado();

            for (int i = 0; i < vEmpleado.size(); i++) {
                Empleado e = vEmpleado.get(i);
                //declaracion de variables locales

                long cedula = e.getCedula();
                String nombre = e.getNombre();
                String apellido = e.getApellido();
                String fechadenacimiento = e.getFechaDeNacimiento();
                String correo = e.getCorreo();
                int sueldo = e.getSueldo();
                int telefono = e.getTelefono();

                //Encapsulamiento para el objeto nuevo
                Object nuevo[] = {cedula, nombre, apellido, fechadenacimiento, correo, sueldo, telefono};
                modelo.addRow(nuevo);

                this.comboBoxConductor.addItem(nombre + " " + apellido);

            }
        } catch (FileNotFoundException ex) {
            Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IOException ex) {
            Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
        }


        // TODO add your handling code here:
}//GEN-LAST:event_mostrarEmpleadosActionPerformed

    private void botonAgregarEmpleadoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonAgregarEmpleadoActionPerformed

        try {
            Empleado empleado = new Empleado();//Instanciar un objeto de la clase ManagerEmpleado
            //declaracion de variables locales
            long cedula = 0;
            String nombre = "";
            String apellido = "";
            String fechadenacimiento;
            String correo;
            int sueldo;
            int telefono;
            int verifica = 0;


            for (int i = 0; i < vEmpleado.size(); i++) { //Recorrer el vector para identificar si hay una cedula repetida
                cedula = Long.parseLong(textCedula.getText());
                if (vEmpleado.get(i).getCedula() == cedula) {// Comparar si ahy una cedula repetida para un empleado
                    JOptionPane.showMessageDialog(null, "Ya existe un empleado con esa Cedula", "error", JOptionPane.ERROR_MESSAGE);//Mensaje de error
                    verifica = 1;//Se almacena el error y se adjunta al vector
                } else {
                    verifica = 0;
                }
            }

            if (this.textCedula.getText().equals("")) {//Se hace la validacion que el textfield no este vacio
                JOptionPane.showMessageDialog(null, "Falta Cedula", "error", JOptionPane.ERROR_MESSAGE);//Mensaje de error
                verifica = 1;
            } else {
                boolean error;

                error = false;
                try {
                    cedula = Long.parseLong(textCedula.getText());
                    empleado.setCedula(cedula);
                    cedula = Long.valueOf(cedula).longValue();
                } catch (NumberFormatException e) {
                    error = true;
                    if (error) {
                        JOptionPane.showMessageDialog(null, "Error al intentar validar la cedula", "Error", JOptionPane.ERROR_MESSAGE);//Mensaje de error
                    }
                }

            }

            if (this.textNombre.getText().equals("")) {//Se hace la validacion que el textfield no este vacio
                JOptionPane.showMessageDialog(null, "Falta Nombre", "error", JOptionPane.ERROR_MESSAGE);//Mensaje de error
                verifica = 1;//Se almacena el error y se adjunta al vector
            } else {
                nombre = textNombre.getText();
                empleado.setNombre(nombre);
            }

            if (this.textApellido.getText().equals("")) {//Se hace la validacion que el textfield no este vacio
                JOptionPane.showMessageDialog(null, "Falta Apellido", "error", JOptionPane.ERROR_MESSAGE);//Mensaje de error
                verifica = 1;//Se almacena el error y se adjunta al vector
            } else {
                apellido = textApellido.getText();
                empleado.setApellido(apellido);
            }

            if (this.ComboBoxDia.getSelectedItem().toString().equals("Dia") || this.ComboBoxMes.getSelectedItem().toString().equals("Mes") || this.ComboBoxAño.getSelectedItem().toString().equals("Año")) {
                JOptionPane.showMessageDialog(null, "La Fecha NO es Valida", "error", JOptionPane.ERROR_MESSAGE);
                verifica = 1;//Se almacena el error y se adjunta al vector
            } else {
                fechadenacimiento = "" + ComboBoxDia.getSelectedItem().toString() + "/" + ComboBoxMes.getSelectedItem().toString() + "/" + ComboBoxAño.getSelectedItem().toString();
                empleado.setFechaDeNacimiento(fechadenacimiento);
            }

            if (this.textCorreo.getText().equals("")) {//Se hace la validacion que el textfield no este vacio
                JOptionPane.showMessageDialog(null, "Falta Correo", "error", JOptionPane.ERROR_MESSAGE);//Mensaje error
                verifica = 1;//Se almacena el error y se adjunta al vector
            } else {
                correo = textCorreo.getText();
                empleado.setCorreo(correo);
            }

            if (this.textSueldo.getText().equals("")) {//Se hace la validacion que el textfield no este vacio
                JOptionPane.showMessageDialog(null, "Falta Sueldo", "error", JOptionPane.ERROR_MESSAGE);
                verifica = 1;//Se almacena el error y se adjunta al vector
            } else {
                boolean error;
                error = false;
                try {
                    sueldo = Integer.parseInt(textSueldo.getText());
                    empleado.setSueldo(sueldo);
                    sueldo = Integer.valueOf(sueldo).intValue();
                } catch (NumberFormatException e) {
                    error = true;
                    if (error) {
                        JOptionPane.showMessageDialog(null, "Error al intentar validar el sueldo", "Error", JOptionPane.ERROR_MESSAGE);//Mensaje de error
                    }
                }
            }

            if (this.textTelefono.getText().equals("")) {//Se hace la validacion que el textfield no este vacio
                JOptionPane.showMessageDialog(null, "Falta Telefono", "error", JOptionPane.ERROR_MESSAGE);//Mensaje de error
                verifica = 1;
            } else {
                boolean error;
                error = false;
                try {
                    telefono = Integer.parseInt(textTelefono.getText());
                    empleado.setTelefono(telefono);
                    telefono = Integer.valueOf(telefono).intValue();
                } catch (NumberFormatException e) {
                    error = true;
                    if (error) {
                        JOptionPane.showMessageDialog(null, "Error al intentar validar el telefono", "Error", JOptionPane.ERROR_MESSAGE);//Mensaje de error
                    }
                }
            }

            if (this.textCedula.getText().equals("") && this.textNombre.getText().equals("") && this.textApellido.getText().equals("") && this.ComboBoxDia.getSelectedItem().toString().equals("Dia") || this.ComboBoxMes.getSelectedItem().toString().equals("Mes") || this.ComboBoxAño.getSelectedItem().toString().equals("Año") && this.textCorreo.getText().equals("") && this.textSueldo.getText().equals("") && this.textTelefono.getText().equals("")) {//Se hace la validacion que el textfield no este vacio
                JOptionPane.showMessageDialog(null, "Error no se puede agregar", "error", JOptionPane.ERROR_MESSAGE);//Mensaje de error

            } else {
                if (verifica == 0) {
                    JOptionPane.showMessageDialog(null, "Agregado Satisfactoriamente", "Mensaje", JOptionPane.INFORMATION_MESSAGE);//Mensaje informativo
                    vEmpleado.add(empleado);
                    this.comboBoxConductor.addItem(nombre + " " + apellido);
                    this.managerempleado.guardarDatosEmpleado(vEmpleado);
                } else {
                    JOptionPane.showMessageDialog(null, "No se ha podido agregar", "error", JOptionPane.ERROR_MESSAGE);//Mensaje de error
                }
            }


        } catch (Exception ex) {
            System.out.println("Mensaje " + ex.getMessage());
        }
    }//GEN-LAST:event_botonAgregarEmpleadoActionPerformed

    private void textSueldoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_textSueldoActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_textSueldoActionPerformed

    private void mostrarVehiculosFrenoABSActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mostrarVehiculosFrenoABSActionPerformed
        // TODO add your handling code here:
        if (vVehiculo.isEmpty()) {
            JOptionPane.showMessageDialog(this, "Cargue primero los datos de vehiculos", "Error", JOptionPane.ERROR_MESSAGE);
        } else {
            String buscado = "ABS";
            int encuentra = 0;
            int encuentra1 = 0;
            int cuenta = 0;
            for (int i = 0; i < vVehiculo.size(); i++) {
                cuenta++;
                if (buscado.equals(vVehiculo.get(i).getSistemafreno())) {
                    DefaultTableModel modelo = (DefaultTableModel) this.tablaVehiculos3.getModel(); // para manipular el objeto en un modelo

                    try {
                        vVehiculo = managervehiculo.cargarDatosVehiculo();
                    } catch (FileNotFoundException ex) {
                        Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
                    } catch (IOException ex) {
                        Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
                    } catch (ClassNotFoundException ex) {
                        Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
                    }
                    Vehiculo carrito = vVehiculo.get(i);
                    //declaracion de variables locales
                    String nombrevehiculo;
                    String placa;
                    String marca;
                    int modelovehiculo;
                    int cilindraje;
                    int capacidaddecargar;
                    String sistemafreno;
                    String chevistar;
                    String proveedor;
                    String fechadeinicio;
                    String fechafinal;
                    int valorpagado;

                    nombrevehiculo = carrito.getNombrevehiculo();
                    placa = carrito.getPlaca();
                    marca = carrito.getMarca();
                    modelovehiculo = carrito.getModelo();
                    cilindraje = carrito.getCilindraje();
                    capacidaddecargar = carrito.getCapacidaddecargar();
                    sistemafreno = carrito.getSistemafreno();
                    chevistar = carrito.getChevistar();
                    proveedor = carrito.getProveedor();
                    fechadeinicio = carrito.getFechadeinicio();
                    fechafinal = carrito.getFechafinal();
                    valorpagado = carrito.getValorpagado();

                    Object nuevo[] = {nombrevehiculo, placa, marca, modelovehiculo, cilindraje, capacidaddecargar, sistemafreno, chevistar, proveedor, fechadeinicio, fechafinal, valorpagado};
                    modelo.addRow(nuevo);

                } else {
                    encuentra++;
                }
            }
            //
            //            DefaultTableModel modelo = (DefaultTableModel) this.tablaVehiculos2.getModel(); // para manipular el objeto en un modelo
            //            modelo.setRowCount(0);

            for (int i = 0; i < vVehiculo.size(); i++) {
                if (encuentra == vVehiculo.size()) {
                    encuentra1 = 1;
                }
            }
            if (encuentra1 == 1) {
                JOptionPane.showMessageDialog(this, "No fue encontrado", "Error", JOptionPane.ERROR_MESSAGE);
            }
        }


        // TODO add your handling code here:
    }//GEN-LAST:event_mostrarVehiculosFrenoABSActionPerformed

    private void BuscaritinerariosbogotaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BuscaritinerariosbogotaActionPerformed
        if (vItinerario.isEmpty()) {
            JOptionPane.showMessageDialog(this, "Cargue primero los datos", "Error", JOptionPane.ERROR_MESSAGE);
        } else {
            DefaultTableModel modelo = (DefaultTableModel) this.tablaItinerario1.getModel(); // para manipular el objeto en un modelo
            modelo.setRowCount(0);
            String buscado = "Bogota";
            String buscado1 = "bogota";
            int encuentra = 0;
            int encuentra1 = 0;
            for (int i = 0; i < vItinerario.size(); i++) {
                if (buscado.equals(vItinerario.get(i).getCiudaddestino()) || buscado1.equals(vItinerario.get(i).getCiudaddestino())) {

                    try {
                        vItinerario = manageritinerario.cargarDatosItinerario();
                    } catch (FileNotFoundException ex) {
                        Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
                    } catch (IOException ex) {
                        Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
                    } catch (ClassNotFoundException ex) {
                        Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
                    }


                    Itinerario itine = vItinerario.get(i);
                    //declaracion de variables locales
                    int identificador;
                    String nombreservicio;
                    String fecharegistro;
                    String fechasalidad;
                    String fechaentrega;
                    String conductor;
                    String ciudadorigen;
                    String ciudaddestino;
                    String placaentrega;
                    String descripcion;


                    identificador = itine.getIdentificador();
                    nombreservicio = itine.getNombreservicio();
                    fecharegistro = itine.getFecharegistro();
                    fechasalidad = itine.getFechasalidad();
                    fechaentrega = itine.getFechaentrega();
                    conductor = itine.getConductor();
                    ciudadorigen = itine.getCiudadorigen();
                    ciudaddestino = itine.getCiudaddestino();
                    placaentrega = itine.getPlacaentrega();
                    descripcion = itine.getDescripcion();


                    Object nuevo[] = {identificador, nombreservicio, fecharegistro, fechasalidad, fechaentrega, conductor, placaentrega, ciudadorigen, ciudaddestino, descripcion};

                    modelo.addRow(nuevo);


                } else {
                    encuentra++;
                }
            }
            for (int i = 0; i < vItinerario.size(); i++) {
                if (encuentra == vItinerario.size()) {
                    encuentra1 = 1;
                }
            }
            if (encuentra1 == 1) {
                JOptionPane.showMessageDialog(this, "No fue encontrado", "Error", JOptionPane.ERROR_MESSAGE);
            }
        }
        // TODO add your handling code here:

        // TODO add your handling code here:
    }//GEN-LAST:event_BuscaritinerariosbogotaActionPerformed

    private void BuscaritinerariosdeotrasciudadesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BuscaritinerariosdeotrasciudadesActionPerformed

        if (vItinerario.isEmpty()) {
            JOptionPane.showMessageDialog(this, "Cargue primero los datos", "Error", JOptionPane.ERROR_MESSAGE);
        } else {
            DefaultTableModel modelo = (DefaultTableModel) this.tablaItinerario1.getModel(); // para manipular el objeto en un modelo
            modelo.setRowCount(0);

            String buscado1 = "";
            int encuentra = 0;
            int encuentra1 = 0;
            for (int i = 0; i < vItinerario.size(); i++) {
                String buscado = vItinerario.get(i).getCiudaddestino();
                if (!buscado.contains("Bogota") && !buscado.contains("bogota") && !buscado.contains("Cali") && !buscado.contains("cali") && !buscado.contains("Tunja") && !buscado.contains("tunja") && !buscado.contains("Medellin") && !buscado.contains("medellin")) {

                    try {
                        vItinerario = manageritinerario.cargarDatosItinerario();
                    } catch (FileNotFoundException ex) {
                        Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
                    } catch (IOException ex) {
                        Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
                    } catch (ClassNotFoundException ex) {
                        Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
                    }


                    Itinerario itine = vItinerario.get(i);
                    //declaracion de variables locales
                    int identificador;
                    String nombreservicio;
                    String fecharegistro;
                    String fechasalidad;
                    String fechaentrega;
                    String conductor;
                    String ciudadorigen;
                    String ciudaddestino;
                    String placaentrega;
                    String descripcion;


                    identificador = itine.getIdentificador();
                    nombreservicio = itine.getNombreservicio();
                    fecharegistro = itine.getFecharegistro();
                    fechasalidad = itine.getFechasalidad();
                    fechaentrega = itine.getFechaentrega();
                    conductor = itine.getConductor();
                    ciudadorigen = itine.getCiudadorigen();
                    ciudaddestino = itine.getCiudaddestino();
                    placaentrega = itine.getPlacaentrega();
                    descripcion = itine.getDescripcion();


                    Object nuevo[] = {identificador, nombreservicio, fecharegistro, fechasalidad, fechaentrega, conductor, placaentrega, ciudadorigen, ciudaddestino, descripcion};

                    modelo.addRow(nuevo);


                } else {
                    encuentra++;
                }
            }
            for (int i = 0; i < vItinerario.size(); i++) {
                if (encuentra == vItinerario.size()) {
                    encuentra1 = 1;
                }
            }
            if (encuentra1 == 1) {
                JOptionPane.showMessageDialog(this, "No fue encontrado", "Error", JOptionPane.ERROR_MESSAGE);
            }
        }

    }//GEN-LAST:event_BuscaritinerariosdeotrasciudadesActionPerformed

    private void BuscaritinerarioscaliActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BuscaritinerarioscaliActionPerformed
        if (vItinerario.isEmpty()) {
            JOptionPane.showMessageDialog(this, "Cargue primero los datos", "Error", JOptionPane.ERROR_MESSAGE);
        } else {
            DefaultTableModel modelo = (DefaultTableModel) this.tablaItinerario1.getModel(); // para manipular el objeto en un modelo
            modelo.setRowCount(0);
            String buscado = "Cali";
            String buscado1 = "cali";
            int encuentra = 0;
            int encuentra1 = 0;
            for (int i = 0; i < vItinerario.size(); i++) {
                if (buscado.equals(vItinerario.get(i).getCiudaddestino()) || buscado1.equals(vItinerario.get(i).getCiudaddestino())) {

                    try {
                        vItinerario = manageritinerario.cargarDatosItinerario();
                    } catch (FileNotFoundException ex) {
                        Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
                    } catch (IOException ex) {
                        Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
                    } catch (ClassNotFoundException ex) {
                        Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
                    }


                    Itinerario itine = vItinerario.get(i);
                    //declaracion de variables locales
                    int identificador;
                    String nombreservicio;
                    String fecharegistro;
                    String fechasalidad;
                    String fechaentrega;
                    String conductor;
                    String ciudadorigen;
                    String ciudaddestino;
                    String placaentrega;
                    String descripcion;


                    identificador = itine.getIdentificador();
                    nombreservicio = itine.getNombreservicio();
                    fecharegistro = itine.getFecharegistro();
                    fechasalidad = itine.getFechasalidad();
                    fechaentrega = itine.getFechaentrega();
                    conductor = itine.getConductor();
                    ciudadorigen = itine.getCiudadorigen();
                    ciudaddestino = itine.getCiudaddestino();
                    placaentrega = itine.getPlacaentrega();
                    descripcion = itine.getDescripcion();


                    Object nuevo[] = {identificador, nombreservicio, fecharegistro, fechasalidad, fechaentrega, conductor, placaentrega, ciudadorigen, ciudaddestino, descripcion};

                    modelo.addRow(nuevo);


                } else {
                    encuentra++;
                }
            }
            for (int i = 0; i < vItinerario.size(); i++) {
                if (encuentra == vItinerario.size()) {
                    encuentra1 = 1;
                }
            }
            if (encuentra1 == 1) {
                JOptionPane.showMessageDialog(this, "No fue encontrado", "Error", JOptionPane.ERROR_MESSAGE);
            }
        }
        // TODO add your handling code here:

        // TODO add your handling code here:
    }//GEN-LAST:event_BuscaritinerarioscaliActionPerformed

    private void BuscaritinerariostunjaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BuscaritinerariostunjaActionPerformed
        if (vItinerario.isEmpty()) {
            JOptionPane.showMessageDialog(this, "Cargue primero los datos", "Error", JOptionPane.ERROR_MESSAGE);
        } else {
            DefaultTableModel modelo = (DefaultTableModel) this.tablaItinerario1.getModel(); // para manipular el objeto en un modelo
            modelo.setRowCount(0);
            String buscado = "Tunja";
            String buscado1 = "tunja";
            int encuentra = 0;
            int encuentra1 = 0;
            for (int i = 0; i < vItinerario.size(); i++) {
                if (buscado.equals(vItinerario.get(i).getCiudaddestino()) || buscado1.equals(vItinerario.get(i).getCiudaddestino())) {

                    try {
                        vItinerario = manageritinerario.cargarDatosItinerario();
                    } catch (FileNotFoundException ex) {
                        Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
                    } catch (IOException ex) {
                        Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
                    } catch (ClassNotFoundException ex) {
                        Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
                    }


                    Itinerario itine = vItinerario.get(i);
                    //declaracion de variables locales
                    int identificador;
                    String nombreservicio;
                    String fecharegistro;
                    String fechasalidad;
                    String fechaentrega;
                    String conductor;
                    String ciudadorigen;
                    String ciudaddestino;
                    String placaentrega;
                    String descripcion;


                    identificador = itine.getIdentificador();
                    nombreservicio = itine.getNombreservicio();
                    fecharegistro = itine.getFecharegistro();
                    fechasalidad = itine.getFechasalidad();
                    fechaentrega = itine.getFechaentrega();
                    conductor = itine.getConductor();
                    ciudadorigen = itine.getCiudadorigen();
                    ciudaddestino = itine.getCiudaddestino();
                    placaentrega = itine.getPlacaentrega();
                    descripcion = itine.getDescripcion();


                    Object nuevo[] = {identificador, nombreservicio, fecharegistro, fechasalidad, fechaentrega, conductor, placaentrega, ciudadorigen, ciudaddestino, descripcion};

                    modelo.addRow(nuevo);


                } else {
                    encuentra++;
                }
            }
            for (int i = 0; i < vItinerario.size(); i++) {
                if (encuentra == vItinerario.size()) {
                    encuentra1 = 1;
                }
            }
            if (encuentra1 == 1) {
                JOptionPane.showMessageDialog(this, "No fue encontrado", "Error", JOptionPane.ERROR_MESSAGE);
            }
        }
        // TODO add your handling code here:

        // TODO add your handling code here:
    }//GEN-LAST:event_BuscaritinerariostunjaActionPerformed

    private void BuscaritinerariosmedellinActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BuscaritinerariosmedellinActionPerformed
        if (vItinerario.isEmpty()) {
            JOptionPane.showMessageDialog(this, "Cargue primero los datos", "Error", JOptionPane.ERROR_MESSAGE);
        } else {
            DefaultTableModel modelo = (DefaultTableModel) this.tablaItinerario1.getModel(); // para manipular el objeto en un modelo
            modelo.setRowCount(0);
            String buscado = "Medellin";
            String buscado1 = "medellin";
            int encuentra = 0;
            int encuentra1 = 0;
            for (int i = 0; i < vItinerario.size(); i++) {
                if (buscado.equals(vItinerario.get(i).getCiudaddestino()) || buscado1.equals(vItinerario.get(i).getCiudaddestino())) {

                    try {
                        vItinerario = manageritinerario.cargarDatosItinerario();
                    } catch (FileNotFoundException ex) {
                        Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
                    } catch (IOException ex) {
                        Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
                    } catch (ClassNotFoundException ex) {
                        Logger.getLogger(Inicio.class.getName()).log(Level.SEVERE, null, ex);
                    }


                    Itinerario itine = vItinerario.get(i);
                    //declaracion de variables locales
                    int identificador;
                    String nombreservicio;
                    String fecharegistro;
                    String fechasalidad;
                    String fechaentrega;
                    String conductor;
                    String ciudadorigen;
                    String ciudaddestino;
                    String placaentrega;
                    String descripcion;


                    identificador = itine.getIdentificador();
                    nombreservicio = itine.getNombreservicio();
                    fecharegistro = itine.getFecharegistro();
                    fechasalidad = itine.getFechasalidad();
                    fechaentrega = itine.getFechaentrega();
                    conductor = itine.getConductor();
                    ciudadorigen = itine.getCiudadorigen();
                    ciudaddestino = itine.getCiudaddestino();
                    placaentrega = itine.getPlacaentrega();
                    descripcion = itine.getDescripcion();


                    Object nuevo[] = {identificador, nombreservicio, fecharegistro, fechasalidad, fechaentrega, conductor, placaentrega, ciudadorigen, ciudaddestino, descripcion};

                    modelo.addRow(nuevo);


                } else {
                    encuentra++;
                }
            }
            for (int i = 0; i < vItinerario.size(); i++) {
                if (encuentra == vItinerario.size()) {
                    encuentra1 = 1;
                }
            }
            if (encuentra1 == 1) {
                JOptionPane.showMessageDialog(this, "No fue encontrado", "Error", JOptionPane.ERROR_MESSAGE);
            }
        }
        // TODO add your handling code here:

        // TODO add your handling code here:
    }//GEN-LAST:event_BuscaritinerariosmedellinActionPerformed

    /**
     * metodo main primer inicio del programa, se ejecuta la ventana Inicio y la hace visible para empezar a trabajarla
     * @param args the command line arguments
     * recibe como parametro el args
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new Inicio().setVisible(true);

            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton Buscaritinerariosbogota;
    private javax.swing.JButton Buscaritinerarioscali;
    private javax.swing.JButton Buscaritinerariosdeotrasciudades;
    private javax.swing.JButton Buscaritinerariosmedellin;
    private javax.swing.JButton Buscaritinerariostunja;
    private javax.swing.JComboBox ComboBoxAño;
    private javax.swing.JComboBox ComboBoxDia;
    private javax.swing.JComboBox ComboBoxMes;
    private javax.swing.JButton botonAgregarCiudad;
    private javax.swing.JButton botonAgregarEmpleado;
    private javax.swing.JButton botonAgregarItinerario;
    private javax.swing.JButton botonAgregarVehiculo;
    private javax.swing.JButton botonMostrarItinerario;
    private javax.swing.JButton botonNuevoEmpleado;
    private javax.swing.JButton botonNuevoItinerario;
    private javax.swing.JButton botoncalcularnominatotal;
    private javax.swing.JButton buscarVehiculoPorPlaca;
    private javax.swing.JButton buscarempleadocedula;
    private javax.swing.JButton buscarempleadonombre;
    private javax.swing.ButtonGroup buttonGroup1;
    private javax.swing.JButton calcularvalorchevistar;
    private javax.swing.JButton cargarCiudades;
    private javax.swing.JComboBox comboBoxChevistar;
    private javax.swing.JComboBox comboBoxConductor;
    private javax.swing.JComboBox comboBoxFechaEntregaAño;
    private javax.swing.JComboBox comboBoxFechaEntregaDia;
    private javax.swing.JComboBox comboBoxFechaEntregaMes;
    private javax.swing.JComboBox comboBoxFechaRegistroAño;
    private javax.swing.JComboBox comboBoxFechaRegistroDia;
    private javax.swing.JComboBox comboBoxFechaRegistroMes;
    private javax.swing.JComboBox comboBoxFechaSalidaAño;
    private javax.swing.JComboBox comboBoxFechaSalidaDia;
    private javax.swing.JComboBox comboBoxFechaSalidaMes;
    private javax.swing.JComboBox comboBoxFreno;
    private javax.swing.JComboBox comboBoxModelo;
    private javax.swing.JComboBox comboBoxPlacaEntrega;
    private javax.swing.JComboBox combodestino;
    private javax.swing.JComboBox comboorigen;
    private javax.swing.JComboBox comboservicio;
    private javax.swing.JComboBox comboxBoxFechaFinalAño;
    private javax.swing.JComboBox comboxBoxFechaFinalDia;
    private javax.swing.JComboBox comboxBoxFechaFinalMes;
    private javax.swing.JComboBox comboxBoxFechaInicioAño;
    private javax.swing.JComboBox comboxBoxFechaInicioDia;
    private javax.swing.JComboBox comboxBoxFechaInicioMes;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel25;
    private javax.swing.JLabel jLabel26;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JLabel jLabelApellido;
    private javax.swing.JLabel jLabelCapacidadCarga;
    private javax.swing.JLabel jLabelCedula;
    private javax.swing.JLabel jLabelChevistar;
    private javax.swing.JLabel jLabelCilindraje;
    private javax.swing.JLabel jLabelCiudaddeDestino;
    private javax.swing.JLabel jLabelCiudaddeOrigen;
    private javax.swing.JLabel jLabelCorreo;
    private javax.swing.JLabel jLabelDescripcionItinerario;
    private javax.swing.JLabel jLabelFechaDeInicio;
    private javax.swing.JLabel jLabelFechaEntrega;
    private javax.swing.JLabel jLabelFechaFinal;
    private javax.swing.JLabel jLabelFechaNacimiento;
    private javax.swing.JLabel jLabelFechaSalida;
    private javax.swing.JLabel jLabelFechadeRegistro;
    private javax.swing.JLabel jLabelIdentificadorNumerico;
    private javax.swing.JLabel jLabelMarca;
    private javax.swing.JLabel jLabelModelo;
    private javax.swing.JLabel jLabelNombre;
    private javax.swing.JLabel jLabelNombreConductor;
    private javax.swing.JLabel jLabelNombreDelServicio;
    private javax.swing.JLabel jLabelNombreVehiculo;
    private javax.swing.JLabel jLabelPlaca;
    private javax.swing.JLabel jLabelPlacaEntrega;
    private javax.swing.JLabel jLabelProveedor;
    private javax.swing.JLabel jLabelSistemaFreno;
    private javax.swing.JLabel jLabelSueldo;
    private javax.swing.JLabel jLabelTelefonoEmpleado;
    private javax.swing.JLabel jLabelValorPagado;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JMenuItem jMenuItem2;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane10;
    private javax.swing.JScrollPane jScrollPane11;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JScrollPane jScrollPane6;
    private javax.swing.JScrollPane jScrollPane7;
    private javax.swing.JScrollPane jScrollPane8;
    private javax.swing.JScrollPane jScrollPane9;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JButton mostrarEmpleados;
    private javax.swing.JButton mostrarVehiculos;
    private javax.swing.JButton mostrarVehiculosFrenoABS;
    private javax.swing.JTable tablaCiudades;
    private javax.swing.JTable tablaEmpleadoBuscado;
    private javax.swing.JTable tablaEmpleadoBuscado1;
    private javax.swing.JTable tablaEmpleados;
    private javax.swing.JTable tablaItinerario;
    private javax.swing.JTable tablaItinerario1;
    private javax.swing.JTable tablaVehiculos;
    private javax.swing.JTable tablaVehiculos1;
    private javax.swing.JTable tablaVehiculos2;
    private javax.swing.JTable tablaVehiculos3;
    private javax.swing.JTextField textApellido;
    private javax.swing.JTextField textCapacidadVehiculo;
    private javax.swing.JTextField textCedula;
    private javax.swing.JTextField textCilindrajeVehiculo;
    private javax.swing.JTextField textCiudad;
    private javax.swing.JTextField textCorreo;
    private javax.swing.JTextArea textDescripcion;
    private javax.swing.JTextField textIdentificador;
    private javax.swing.JTextField textMarcaVehiculo;
    private javax.swing.JTextField textNombre;
    private javax.swing.JTextField textNombreVehiculo;
    private javax.swing.JTextField textNominaTotal;
    private javax.swing.JTextField textPlacaVehiculo;
    private javax.swing.JTextField textProveedor;
    private javax.swing.JTextField textSueldo;
    private javax.swing.JTextField textTelefono;
    private javax.swing.JTextField textValorPagado;
    private javax.swing.JTextField textvalorchevistar;
    private javax.swing.JLabel titulo;
    private javax.swing.JButton verVehiculosConChevistar;
    private org.jdesktop.beansbinding.BindingGroup bindingGroup;
    // End of variables declaration//GEN-END:variables
}
